xml parsing - Error in XML file: cvc-elt.1.a Cannot find the declaration of element? -


got xml php_parser, it's corrupted, when validating, got error: cvc-elt.1.a: cannot find declaration of element 'ast'. should append it?

    <?xml version="1.0" encoding="utf-8"?> <ast xmlns:node = "http://nikic.github.com/phpparser/xml/node"      xmlns:subnode = "http://nikic.github.com/phpparser/xml/subnode"      xmlns:attribute = "http://nikic.github.com/phpparser/xml/attribute"      xmlns:scalar = "http://nikic.github.com/phpparser/xml/scalar">     <scalar:array>         <node:expr_assign>             <attribute:startline>                 <scalar:int>3</scalar:int>             </attribute:startline>             <attribute:endline>                 <scalar:int>3</scalar:int>             </attribute:endline>             <subnode:var>                 <node:expr_variable>                     <attribute:startline>                         <scalar:int>3</scalar:int>                     </attribute:startline>                     <attribute:endline>                         <scalar:int>3</scalar:int>                     </attribute:endline>                     <subnode:name>                         <scalar:string>user</scalar:string>                     </subnode:name>                 </node:expr_variable>             </subnode:var>             <subnode:expr>                 <node:scalar_lnumber>                     <attribute:startline>                         <scalar:int>3</scalar:int>                     </attribute:startline>                     <attribute:endline>                         <scalar:int>3</scalar:int>                     </attribute:endline>                     <subnode:value>                         <scalar:int>777</scalar:int>                     </subnode:value>                 </node:scalar_lnumber>             </subnode:expr>         </node:expr_assign>     </scalar:array> </ast> 

your problem no (default) namespace defined element ast.

i adapt element ast namespace defined , in output of php_parser element prefixed namespace.


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -