Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: load xml issue

  1. #1
    New to the CF scene
    Join Date
    Nov 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile load xml issue

    hi all,

    i'm trying to parse a xml file using DOMDocument, but i'm getting the error as

    Warning: DOMDocument::load(...jobs.xml) [function.DOMDocument-load]: failed to open stream: Permission denied in ...import.php on line 26

    code i used

    $doc = new DOMDocument();
    $doc->load( 'jobs.xml' );

    $jobs = $doc->getElementsByTagName( "jobtitle" );

    am workin in windows platform

    can anyone help me in tis..
    plzzzzzzzzzz

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Posts
    905
    Thanks
    23
    Thanked 5 Times in 5 Posts
    hi,

    failed to open stream: Permission denied..

    this means it cannot get the xml data from the file..

    it suggests why, check the permission of jobs.xml aswell as check that the file exists and is in the right place.

    cheers
    p


  •  

    Posting Permissions

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