0
從PHP_Parser得到這個XML,但是在驗證時出現錯誤,出現錯誤:cvc-elt.1.a:找不到元素'AST'的聲明。 我應該附加什麼?XML文件錯誤:cvc-elt.1.a無法找到元素的聲明?
<?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>