File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
How to insert brackets into an XML element value?
Joined: Jan 17, 2008
Mar 27, 2008 03:52:00
If I have a <file> </file> element in an XML file and I want to insert a filename of the form PED<yyMMdd>232, how do I insert the < and > brackets as an element value inside the <file> tag?
I use JCreator to edit the xml file and it treats <yyMMdd> as a seperate element instead of being part of the filename.
Joined: Feb 25, 2007
Mar 27, 2008 04:12:00
Escape < with < and > with >
, a better way to API!
Joined: Mar 22, 2005
Mar 27, 2008 05:01:00
Or you can use a CDATA section.
Ping & DNS, my free Android app for network diagnostics
subject: How to insert brackets into an XML element value?
Navigation of XML records
Need help in modifying XML text value using DOm parser
xml, dtd, and parsing code
Query about jDOM.
XML HELP... Sigh..
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014