以json形式表示该节点。

toJSON()

返回值

返回此节点的JSON表示。结果中使用长格式QNames。

代码例

var props = node.getPropertyNames(true);

toJSON(useShortQNames)

参数

  • useShortQNames
    true:结果中使用短格式QNames
    false:结果中使用长格式QNames

返回值

返回此节点的JSON表示。

文档更新时间: 2019-01-11 15:59   作者:凌云文档