×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jul 2006
    Location
    Wieliczka, Poland
    Posts
    64

    Question XML escaped content parsing

    I want to create XML parser with possibility to parse escaped tag content "on the fly". For example I have a simple xml file:

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <RootTag>
    &lt;TestTag1 attr1=&quot;attr1_value&quot; &gt;
    &lt;TestTag2 id=&quot;ID1&quot; /&gt;
    &lt;/TestTag1&gt;
    </RootTag>
    I want the parser to convert content of <RootTag> escaped characters to unescaped (for example "&lt;" to character: "<") and also parse this content. How I can manage this wich Symbian XML Parser (using CParse class)?

  2. #2
    Regular Contributor
    Join Date
    May 2008
    Location
    Budapest, Hungary
    Posts
    84

    Re: XML escaped content parsing

    I don't think you can do that in one step.

    When you run this stuff through the CParser, the escaped text will show up as Content.
    If you run the EscapeUtils class on the content data it to un-escape, you can start another parser...

    Or you could read the whole XML in first, un-escape, then parse.
    Or do this in smaller chunks.

Similar Threads

  1. Parsing wbxml file to xml file using kxml parser
    By ramyashashe in forum Mobile Java General
    Replies: 18
    Last Post: 2010-05-17, 15:56
  2. Playing video on N95 using J2me
    By Ehudm in forum Streaming and Video
    Replies: 4
    Last Post: 2010-01-03, 07:06
  3. Replies: 5
    Last Post: 2008-06-13, 06:35
  4. Replies: 4
    Last Post: 2007-08-10, 02:04
  5. Audio Input Stream on N80
    By tkaihock in forum Symbian Media (Closed)
    Replies: 9
    Last Post: 2006-06-30, 09:15

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×