[jdom-interest] Parsing multiple XML documents

Igal Corcos scarface at MAGMA.CA
Fri Jan 18 09:29:18 PST 2002


Hello,

Is there a way to parse multiple XML documents in one physical file using
JDOM?

For example, if I have a file called Orders.xml which contains something
like:

<?xml version="1.0" encoding="UTF-8"?>
<Orders>
...
</Orders>
<?xml version="1.0" encoding="UTF-8"?>
<Orders>
...
</Orders>
<?xml version="1.0" encoding="UTF-8"?>
<Orders>
...
</Orders>

Is there a way to parse the file and create 3 Document objects? If not, can
someone suggest another way to accomplish this?

Thanks.
-Igal Corcos





More information about the jdom-interest mailing list