xerces-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesse Pelton" <...@PKC.com>
Subject RE: How to get a DOMNode XML
Date Fri, 13 Feb 2009 13:21:25 GMT
If you're asking how to serialize a DOMNode to text and you're using
Xerces 3, you could use DOMImplementationLS.  See
http://xerces.apache.org/xerces-c/apiDocs-3/classDOMImplementationLS.htm
l. 

-----Original Message-----
From: baranidharan [mailto:baranidharan.kuppusamy@sifycorp.com] 
Sent: Friday, February 13, 2009 7:57 AM
To: c-dev@xerces.apache.org
Subject: How to get a DOMNode XML 

Hi all ,
           main()
            {
                XercesDOMParser* parser = new XercesDOMParser();
                parser->parse(xmlFile);
                DOMDocument *doc = parser->getDocument();
                DOMNodeList  *ml;
                XMLCh *xa = XMLString::transcode("monitor");
                ml = doc->getElementsByTagName(xa);
                DOMNode *n;
                n = ml->item(len);
                open(n)
            }
           
            void open(DOMNode *n)
             {
                 ??? How to get a node XML
             }

      In the above pseudo program ,  i want to get a DOMNode xml in the 
open() function, pls tell me how to get a DOMNode XML.

Thanks,
Barani



Get your world in your inbox!

Mail, widgets, documents, spreadsheets, organizer and much more with
your Sifymail WIYI id!
Log on to http://www.sify.com

********** DISCLAIMER **********
Information contained and transmitted by this E-MAIL is proprietary to 
Sify Limited and is intended for use only by the individual or entity to

which it is addressed, and may contain information that is privileged, 
confidential or exempt from disclosure under applicable law. If this is
a 
forwarded message, the content of this E-MAIL may not have been sent
with 
the authority of the Company. If you are not the intended recipient, an 
agent of the intended recipient or a  person responsible for delivering
the 
information to the named recipient,  you are notified that any use, 
distribution, transmission, printing, copying or dissemination of this 
information in any way or in any manner is strictly prohibited. If you
have 
received this communication in error, please delete this mail & notify
us 
immediately at admin@sifycorp.com

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


Mime
View raw message