commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Bourg <ebo...@apache.org>
Subject Re: [configuration] XML fragments
Date Tue, 15 Nov 2011 08:50:46 GMT
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: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>



Mime
View raw message