xml xls php

Discussion in 'PHP' started by rigas, Jan 7, 2010.

  1. #1
    καλημερα

    εχω ενα xml εγγραφο το οποιο μου ανοιγει μονο στον editor που χρησιμοποιω αλλα σε κανενα browser. επιπλεον θελω να συνδεσω το xml με το xsl μεσω php.

    αν εχετε καποιο καλο editor να προτεινετε η αν εχετε καποια ιδεα πως μπορει να λυθει το προβλημα θα βοηθουσατε πολυ.

    Ευχαριστω! :)
     
    rigas, Jan 7, 2010 IP
  2. luckymurari

    luckymurari Active Member

    Messages:
    629
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    90
    #2
    This is an English forum
     
    luckymurari, Jan 7, 2010 IP
  3. AsHinE

    AsHinE Well-Known Member

    Messages:
    240
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    138
    #3
    I don't understand your question except for "xml xls php"
    here is code snippet

    
    $XML = new DOMDocument('1.0');
    $c =file_get_contents("file.xml");
    $XML->loadXML($c);
    $xslt = new XSLTProcessor();
    $XSL = new DOMDocument();
    $XSL->load('file.xsl', LIBXML_NOCDATA);
    $xslt->importStylesheet( $XSL );
    $result =  $xslt->transformToXML( $XML );
    
    PHP:
     
    AsHinE, Jan 8, 2010 IP
  4. rigas

    rigas Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    sorry guys. i dont know how i did this.

    anyway the question was the one that the friend above answered.

    trying this code snippet and some others i found at manuals i continue to recieve the same error

    [​IMG]

    is there any problem with my xls?
     
    Last edited: Jan 8, 2010
    rigas, Jan 8, 2010 IP
  5. astkboy2008

    astkboy2008 Peon

    Messages:
    211
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #5
    kaper dema3k ya man
     
    astkboy2008, Jan 8, 2010 IP
  6. luckymurari

    luckymurari Active Member

    Messages:
    629
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    90
    #6
    From the warnings, the problem should be in your file .
     
    luckymurari, Jan 8, 2010 IP
  7. rigas

    rigas Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    since now i was using the program "xml copy editor" to validate xml and xsl files. this program finds no mistakes. is there any other way to find any possible mistakes?
     
    rigas, Jan 8, 2010 IP