Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML Include Files

Status
Not open for further replies.

defiant42

Programmer
Joined
May 2, 2002
Messages
1
Location
US

Hello,

I have some xml files that I want to "include" in another, and am having problems on the syntax. Is there a way to do this currently?

File 1 Example (Parent.XML):

<forms name='ContactForms'>

** put some reference to Child Files here.......

</forms>


File 2 Example (Child1.XML):

<form name='NameAndPhone'>
<field name='LastName'>
<field name='FirstName'>
<field name='Phone'>
</form>

File 3 Example (Child2.XML)

<form name='PostalAddress'>
<field name='AddrLine1'>
<field name='AddrLine2'>
<field name='AddrLine3'>
<field name='City'>
<field name='State'>
<field name='PostalCode'>
</form>


Any Help would be greatly appreciated.

Eric

 
Is this correct ? It looks like a special form of include that is parsed by Winamp.

As far as I know the include will work like:
Code:
<?xml version='1.0'?>
<document xmlns:xi=&quot;[URL unfurl="true"]http://www.w3.org/2001/XInclude&quot;>[/URL]
  <p>120 Mz is adequate for an average home user.</p>
  <xi:include href=&quot;disclaimer.xml&quot;/>
</document>

But the XInclude is in state 'W3C Candidate Recommendation 21 February 2002', so i don't know if any parser has builtin support for this now.

See:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top