Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

[3944] How to create XML files

Last post 02-25-2007 11:14 AM by eagleman. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 01-01-1999 12:00 AM

    [3944] How to create XML files

    This thread is for discussions of How to create XML files.

    • Post Points: 20
  • 01-30-2004 1:52 PM In reply to

    • Welshie
    • Not Ranked
    • Joined on 01-30-2004
    • New Member
    • Points 5

    Creating xml files using php

    Hi, i was wondering do i have download XML DOM to be able to create an xml file, MY php parser does not recognise the xml functions ? Thanks in advance
    • Post Points: 0
  • 05-19-2006 6:33 AM In reply to

    • jherzog
    • Not Ranked
    • Joined on 05-19-2006
    • United States
    • New Member
    • Points 5

    Re: [3944] How to create XML files

    I am a fairly new coder, at least when it come to XML and this php code.  I had a couple of questions.  I am trying to make my php script duplicate and XML example I was given.  I followed your advice above but there where a couple of differences between the two.  I was hoping you might help me out on how to fix them.

    1) in the XML sheet that I am trying to duplicate each child object is on a new line and indented.  Using your method above everything appears on one line.  Does this matter?  Is there a fix?  Even if it doesn't matter it would be ideal to have each child object on a new line.

    For example:
    <root>
        <child1>value1</child1>
        <child2>value2<child2>
           <childchild1>subvalue1</childchild1>
    </root>

    As Opposed to:
    <root><child1>value1</child1><child2>value2<child2><childchild1>subvalue1</childchild1></root>

    2)fields that are blank in my example show up as:
            <notblank1>value1</notblank1>
           <blank />
           <notblank2>value2</notblank2>

    After implementing your method they show up as:
            <notblank1>value1</notblank1>
           <blank></blank>
           <notblank2>value2</notblank2>

    I know I am asking a lot but I could really use the help.  Thanks for any suggestions. 

    Jed





























    • Post Points: 5
  • 02-25-2007 11:14 AM In reply to

    • eagleman
    • Not Ranked
    • Joined on 02-25-2007
    • New Member
    • Points 5

    Re: [3944] How to create XML files

    i have the following error in line:

    $doc = new_xmldoc('1.0');

    when i am debbuging to create my xml file appears:

    <b>Fatal error</b>:  Class 'xmldoc' not found in <b>D:\Program Files\xampp\htdocs\dokimi\create_xml.php</b> on line <b>5</b><br />

    why?? am i doing something wrong??

    Thank you

    • Post Points: 5
Page 1 of 1 (4 items)