Using the MSXML DOM, is there a way to get the XML of a node in the DOM without getting the tags of the element you are addressing?

Ex.

 

XML DOC

<!xml version="1.0">

<elementA>

      <elementB>

            Testing

            <elementC />

Testing

      </elementB>

</elementA>

 

To get the "elementB" node's XML, I do as follows in JScript:

 

//assuming I have instantiated an MSXML3 processor object

elB = xmlProc.getNamedItem("elementB");

elBxml = elB.xml;

 

But what elBxml contains is:

      <elementB>

            Testing

            <elementC />

Testing

      </elementB>

 

All I want is:

                        Testing

            <elementC />

                        Testing

 

Any ideas?

 

 

Rob Blitz

Team Leader

Web Application Development Team

RWD Technologies, MIS

410.884.5063 (Office phone)

410.884.2749 (Office fax)

 

Reply via email to