dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: XML Relatioships

  1. #1
    Join Date
    Jan 2003
    Location
    Thiruvananthapuram, Kerala, India
    Posts
    27

    XML Relatioships

    Hi,

    My doubt is

    i want to link 2 XML documents together...
    ie for example:

    XML.xml
    --------------------------

    <XML>
    <RECORD NO = "1">
    <FIELD NAME="ID">E1001</FIELD>
    <FIELD NAME="NAME">XYZ</FIELD>
    <FIELD NAME="SALARY">10000</FIELD>
    </RECORD>
    <RECORD NO = "2">
    <FIELD NAME="ID">E1002</FIELD>
    <FIELD NAME="NAME">YZA</FIELD>
    <FIELD NAME="SALARY">20000</FIELD>
    </RECORD>
    <RECORD NO = "3">
    <FIELD NAME="ID">E1003</FIELD>
    <FIELD NAME="NAME">ZAB</FIELD>
    <FIELD NAME="SALARY">30000</FIELD>
    </RECORD>
    ***
    for the fourth record i want to access another XML document say XML1.xml

    ****

    </XML>



    XML1.xml
    -----------------------------------
    <RECORD NO="4">
    <FIELD NAME="ID">E1004/FIELD>
    <FIELD NAME="NAME">ABC<FIELD>
    <FIELD NAME="SALARY">50000</FIELD>
    </RECORD>

    The parser should treat the record tag of XML1.xml as a part of XML.xml

    Please help me how to do it

    Thank You

  2. #2
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,279
    You parse a third file that looks like:

    <?xml version="1.0" encoding="iso-8859-1"?>
    <!DOCTYPE document [
    <!ENTITY first-file SYSTEM "XML.xml">
    <!ENTITY second-file SYSTEM "XML1.xml">
    ]>
    <document>
    &first-file;
    &second-file;
    </document>
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles