Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading data from XML comment

Status
Not open for further replies.

GonoszNora

Technical User
Oct 26, 2009
1
SE
Hi all!

I have en xml file full with data which result in an excel file in the end. I need to insert some more data and rows without touching the xsl file. I got the advice that I should put the extra data to a comment, but what reads out the data from the comment?
Anyone can help? Or suggest a different solution?

Thanks,
Nora
 
If you load the XML document into a DOM, the comment will be a node in the DOM.

If you are using XSL to do the insertion, you can find the appropriate comment node using the XPath comment() node designation. The value of a comment() node is the text in the comment, so it is possible to create and use 'structured comments' in XSL.

Tom Morrison
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top