Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] entities

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "Kostas Maistrelis" <pinakas AT gmail.com>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: [XOM-interest] entities
  • Date: Mon, 24 Jul 2006 21:06:16 +0300

I want to make a procedure that returns the same result with the method

document.toXml()

with one difference:
I want to leave the entities without a translation (Like the current
behavior of toXML() method for the &amp; entity)

For example i want to build a document and then to get back the same
view with a procedure like the toXml() method.

<?xml version="1.0"?>

<!DOCTYPE demo [
<!ELEMENT demo (#PCDATA)>
<!ENTITY laquo "&#171;">
<!ENTITY raquo "&#187;">

]>


<demo>
amp: &amp;
laquo: &laquo;
raquo: &raquo;
</demo>




Now i Have this result :

<?xml version="1.0"?>
<!DOCTYPE demo [
<!ELEMENT demo (#PCDATA)>
<!ENTITY laquo "«">
<!ENTITY raquo "»">
]>
<demo>
amp: &amp;
laquo: «
raquo: »
</demo>


Is that possible to happen?
Thanks in advance




Archive powered by MHonArc 2.6.24.

Top of Page