Results 1 to 14 of 14

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date: Jun:2006
    Location: Bulgaria
    Posts: 16

    PHP : XML parser

    , :
    xml, ? "folder".
    <?xml version="1.0" encoding="UTF-8"?>
    <root>
    <folder name="test">
    <folder name="folderInFolder">
    <file name="f2.xyz"/>
    <file name="f3.xyz"/>
    </folder>
    <folder name="folderInFolder2">
    <file name="f4.xyz"/>
    </folder>
    </folder>
    <folder name="test2">
    <folder name="folderInFolder3">
    <file name="f5.xyz"/>
    </folder>
    </folder>
    </root>

    !

  2. #2
    Dark tranquillity
    Join Date: Aug:2006
    Location: Sofia
    Posts: 796
    CXml
    Core 2 Duo E6600 @ 3.15GHz + Zalman 9500| Gigabyte 965P DS-4 | Asus EAX1950Pro + Samsung 226BW | 4 x 1GB DDR-2 800 A-Data | CM Elite 330 + Fortron BS 500W | X-Fi Fatal1ty Pro | Samsung HD400LJ 400GB | NEC AD-7170A | MS Natural KB + A4 X7 G100 Game pad | Mouse A4 X750 BF

  3. #3
    relative dude Skydive's Avatar
    Join Date: Nov:2002
    Location: /
    Posts: 2,863
    Quote Originally Posted by amok View Post
    , :
    SimpleXML ?

    DOMDocument :

    $xml = new DOMDocument();
    $xml->load('fileName');
    $xml->getElementsByTagName('tagName');
    $xml->getAttribute('attributeName');

    ..

    : , PHP5+

    2: parent/child xml-a, xml.
    Last edited by Skydive; 16th October 2007 at 18:29.

  4. #4
    philosophus duratea icaci's Avatar
    Join Date: Oct:2006
    Location: Aachen
    Posts: 2,698
    Quote Originally Posted by Skydive View Post
    2: parent/child xml-a, xml.
    - , ?

    XML - XML , expat - .
    Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others

  5. #5
    Valjak-Cilindar-Parni
    Join Date: Apr:2007
    Location: sofia
    Posts: 20
    Unix.[snip]. Do not believe in anything merely on the authority of your teachers and elders. But when,after observation and analysis,you find anything that agrees with reason,and is conducive to the good and benefit of one and all,then accept it and live up to it.
    http://www.valqk.com/post/40

  6. #6
    Registered User
    Join Date: Jun:2006
    Location: Bulgaria
    Posts: 16
    . .

  7. #7
    relative dude Skydive's Avatar
    Join Date: Nov:2002
    Location: /
    Posts: 2,863
    Quote Originally Posted by icaci View Post
    - , ?
    , xml . . :

    <folder type="folder" name="test">
    <folder1 type="folder" name="folderInFolder">
    <file type="file">f2.xyz</file>
    <file type="file">f3.xyz</file>
    </folder1>
    </folder>

  8. #8
    philosophus duratea icaci's Avatar
    Join Date: Oct:2006
    Location: Aachen
    Posts: 2,698
    , 100+ , XML- , ? - folderM folder(M-N), N ? XSLT ? folder56, 57 ?

    XML , . , .
    Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others

  9. #9
    relative dude Skydive's Avatar
    Join Date: Nov:2002
    Location: /
    Posts: 2,863
    Quote Originally Posted by icaci View Post
    , 100+ , XML- , ?
    , ?
    xsd-, , , ? , -, , xml file.

    Quote Originally Posted by icaci View Post
    - folderM folder(M-N), N ?
    - , .
    Quote Originally Posted by icaci View Post
    folder56, 57 ?
    . , 10000 ? , xml.

    Quote Originally Posted by icaci View Post
    , .
    .

    Quote Originally Posted by icaci View Post
    XML - XML , expat - .
    -, -.

    prima vista , . 1000 parent/child .
    Last edited by Skydive; 18th October 2007 at 17:26.

  10. #10
    philosophus duratea icaci's Avatar
    Join Date: Oct:2006
    Location: Aachen
    Posts: 2,698
    Quote Originally Posted by Skydive View Post
    ...
    . , , , , .
    Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others

  11. #11
    Registered User Annihilator's Avatar
    Join Date: Jun:2004
    Location: Sofia
    Posts: 1,316

  12. #12
    relative dude Skydive's Avatar
    Join Date: Nov:2002
    Location: /
    Posts: 2,863
    Quote Originally Posted by Annihilator View Post
    skydive, ,
    , - . , -.

    , , , .
    Last edited by Skydive; 18th October 2007 at 23:04.

  13. #13
    دارس وعامل Siemens's Avatar
    Join Date: Jul:2003
    Location:
    Posts: 1,576
    Skydive, XML. . , , XML-a.
    - ID- . xpath .
    function trace .

  14. #14
    philosophus duratea icaci's Avatar
    Join Date: Oct:2006
    Location: Aachen
    Posts: 2,698
    XPath
    Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others

Posting Permissions

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

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |