How can I call mandatory part of XML .....

M

mamidogad

Dear Sir;

How can I call mandatory part of XML from other path and acheive
validation process
at the same time.

My full XML is divided to three parts (front, body, and back) how can
I call the front and back
from other path, e.g.,

<?xml version="1.0"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.1
20050630//EN" "journalpublishing.dtd">

<input link="front.xml"/>

<body>
<sec>
<p>
</p>
</sec>........
.......
</body>

<input link="back.xml"/>

Thanks
 
J

Joseph Kesselman

<input link="front.xml"/>

*IF* your processor supports it, use XInclude.
http://www.w3.org/TR/xinclude/

If your processor doesn't support XInclude, you can achieve similar
results by running the document through a suitable XSLT stylesheet and
XSLT processor.

If that isn't available either, you're stuck with processing these
includes before shipping the document out to the user.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,008
Messages
2,570,268
Members
46,867
Latest member
Lonny Petersen

Latest Threads

Top