Hi Billy,

Such a file can't be parsed in Java since it's not well formed. You can try to add a root element when the files are concatenated to work around this issue.

Emmanuel Bourg


Le 15/11/2011 05:12, Billy Newman a écrit :
Does the configuration API support XML fragments?

I have a situation in which I have many XML files that I concatenate
together.  Because I do this there is no root element.

<node>
....
</node>
<node>
...
</node>

I have tried but get an error that there is no root element.

I am using the configuration builder class to read in an XML file that
specifies my configuration. Maybe there is a way to add a root element
in the XML tag.

Confit
<xml fileName="nodes.xml .......

Thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



Attachment: smime.p7s
Description: Signature cryptographique S/MIME

Reply via email to