从 PHP_Parser 获取此 XML,但它已损坏,验证时出现错误:cvc-elt.1.a:找不到元素“AST”的声明。 我应该附加什么?
<?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>