Re: [xml] (Hacky) XML includes



Michael Abbott wrote:
As an example for an included file:

  <AnElement>
    blah
  </AnElement>

  <AnotherElement>
    blah
  </AnotherElement>


If that's the full, exact contents if an included file, then the problem is that XML documents can only have 1 root node. Just wrap the entire contents in another tag.

<elements>
 <AnElement>blah</AnElement>
 <AnotherElement>blah</AnotherElement>
 ...
</elements>

That should stop the technical problem, but it'd definitely be good to look into using real XIncludes that Daniel mentioned.

Jason




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]