|
From: Jimmy Z. <cra...@co...> - 2007-06-30 02:31:47
|
http://vtd-xml.blogspot.com/2007/06/body-p-div-h1-h2-h3-h4-h5-h6-address-= ol.html ----- Original Message -----=20 From: Jimmy Zhang=20 To: zhangong xu ; vtd...@li...=20 Sent: Friday, June 29, 2007 12:39 PM Subject: Re: [Vtd-xml-users] A problem about VTD-XML parsing. I have to investigate, but right now I think you get call = getElementFragment to get the fragement offset/length for <c>abc</c>, once you have that you can = then chop off <b>...</b> fragment, then reinsert <c>abc</c>.. let me see if I = can make it work first... ----- Original Message -----=20 From: zhangong xu=20 To: vtd...@li...=20 Sent: Friday, June 29, 2007 2:15 AM Subject: [Vtd-xml-users] A problem about VTD-XML parsing. Hi All , Ii have a problem: A xml file contains this: <a> <b> <c>abc</c> </b> </a> but now i want to process it to the following result: <a> <c>abc</c> </a> what we should do is cuting the label <b>and</b> but the content = between them is still available. I have tried it by using the removeToken() method in XMLModifier, = but it can only remove the start-tag content, the end-tag</b> is still = exist,what should i do? Can anybody give me a program example?=20 Thanks so much. -------------------------------------------------------------------------= --- Hotmail to go? Get your Hotmail, news, sports and much more! Check = out the New MSN Mobile=20 -------------------------------------------------------------------------= --- = -------------------------------------------------------------------------= This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/=20 -------------------------------------------------------------------------= --- _______________________________________________ Vtd-xml-users mailing list Vtd...@li... https://lists.sourceforge.net/lists/listinfo/vtd-xml-users -------------------------------------------------------------------------= ----- = -------------------------------------------------------------------------= This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ -------------------------------------------------------------------------= ----- _______________________________________________ Vtd-xml-users mailing list Vtd...@li... https://lists.sourceforge.net/lists/listinfo/vtd-xml-users |