Using XMLDocument with XML namespaces


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Using XMLDocument with XML namespaces

  1. #1
    Greg Rothlander Guest

    Using XMLDocument with XML namespaces


    I am using VB.Net to write a conversion class from an XML document to a ASCII
    delimited string in order to import data into an existing applicaiton. I'm
    just converting XML data to the format that the app is already using. It's
    pretty strait forward and I've considered using XSLT to do this. At this
    point I'm just doing the conversion via DOM commands in VB.Net. However,
    I'm trying to perfrom a SelectSingleNode() and I can not do so for anything
    after a number of namespaces are defined. If I remove them, it works fine.
    If I leave them there, the SelectSingleNode() commands fail. Here is a
    sample of the XML...


    ?xml version="1.0"?>
    <?Label MYRMB|RESERVATION|617378|NEW?>
    <Reservation xmlns="reservation.fidelio.1.0" xmlnsf="profile.fo.1.2" xmlns:udf="udf.fi.1.0"
    xmlns:udfdef="udfdef.fi.1.0" mfShareAction="NA" mfReservationAction="NA">
    <HotelReference>
    <hotelCode>MYRMB</hotelCode>
    </HotelReference>



  2. #2
    Greg Rothlander Guest

    Re: Using XMLDocument with XML namespaces


    My browser just had an issue and didn't let me finish. It seems to have double
    posted this. Sorry!

    If you have any suggestions please let me know. I'm going through documentation
    regarding the use of these namespaces, but I would rather just ignore them
    if possible. My current solution is to remove them, but I would rather find
    a better way to handle this.

    Any information, suggestions, or help would be very much appreciated.

    Thanks,
    Greg Rothlander

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center