Hello Friends,
Please help me by answering any of these three small problems in XML\DTD:
1) How to write the escape sequence in XML.
for e.g: if I want to write
<Company> Shyam & sons</Company>
Naturally it is not accepting the '&' sign. '&' is the reserved symbol for Entities and hence the prob.What should I do?
2)I have an external parsed entity in my XML file, main.xml, as under:
:
<reply> &EP; </reply>
:
In my DTD the external parsed entity EP is referencing to another XML file , say demo.xml. This file which is referred to is having its own DTD structure.
Hence when I try to see main.xml it gives me the error that there cannot be two
DOC structures and so on. This is because of the second DTD , i.e the DTD of demo.xml.
So what am I supposed to do ?
3) I am using JavaScript in my XML document called dailyRates.xml as follows:
var xmlDoc=new ActiveXObject("microsoft.xmldom");
xmlDoc.load("dailyRates.xml");
root=xmlDoc.documentElement;
:
which , ofcourse loads the dailyRates.XML and I can use the Document Object model as I want.
But the probelem is that now I will be generating the XML document dailyRates.xml on the fly ( using
Java ).
Within the file which is to be generated how will I pass the reference of the XML document.
i.e : what should I write xmlDoc.load(...???..);
I also want advice if the way I am using to load the XML document for use in javaScript , i.e new ActiveXObject....etc, is Ok. I mean any other suggestions?
Please reply to any of the qtns at the earliest and oblige,
Thanks in advance,
Milan Doshi