简体   繁体   中英

Parsing Hyphenated xml Tag

can somebody explain me how to parse hyphenated xml tag using commons digest .i have been searching around the net but no luck help me out in this

<foo id="1">...
    <bar> 
      <foo-ref id="1"/> 
    </bar>
</foo> 

What about this?

digester.addObjectCreate("foo-ref", "mypackage.FooRef");

http://commons.apache.org/proper/commons-digester/guide/core.html#doc.Usage

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM