2

我有 XML 响应并试图解析它:

<?xml version="1.0" encoding="UTF-8"?>
<found>

<objects>

    <object handle="Collection-10" class="Folder" classType="Folder">
        <title>Initial Top Level Collection A</title>
    </object>

    <object handle="Collection-11" class="Folder" classType="Folder">
        <title>Initial Top Level Collection B</title>
    </object>

</objects>  

</found>

如何在类名之前添加包?

class="package.Folder"

现在我只使用:

String.replaceAll(classAttributeName, classAttributeName + packageName);
4

0 回答 0