Community discussion forum

How to create XML files

This is a comment thread discussing How to create XML files
  • 9 years ago

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

  • Advertisement

    Simply the fastest line-level profiler for .NET ever

    “The low overhead means it has minimal impact on the execution of my program”
    Mark Everest, Development Team Leader, Renault F1 Team Ltd.

    Try out the new ANTS Profiler 4 for yourself. Download your 14-day trial now

  • 4 years ago

    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

  • 2 years ago

    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





























  • 1 year ago

    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 a reply

Enter your message below

Sign in or Join us (it's free).