Skip to main content

Question:How to access and modify xml tags using JavaME?

2 replies [Last post]
victornik
Offline
Joined: 2007-06-02

have an xml based document that i need to access and change. For example, the code

something

Working with JavaME I need to access all the tags, select some of them that are relevant to the current device and remade the document. I thought I would read the file character by character identifying the different labels and building a tree, storing in the tree nodes the relevant information as some kind of attributes (for example, in the case of the I would name the node "xforms:group" and create an "id" attribute with value "id1"). I'm not sure if that is the most efficient way of accessing the problem (computational power might be an issue), and would appreciate some help on the subject.

Thanks,

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
C. Enrique Ortiz

Just an XML parser such as Stefan's KXML. See:
http://kxml.sourceforge.net/kxml2/

ceo

meinterest@mobileandembedded.org wrote:
> have an xml based document that i need to access and change. For example, the code
>
>


>
>
>
> something
>

>

>

>


>
> Working with JavaME I need to access all the tags, select some of them that are relevant to the current device and remade the document. I thought I would read the file character by character identifying the different labels and building a tree, storing in the tree nodes the relevant information as some kind of attributes (for example, in the case of the I would name the node "xforms:group" and create an "id" attribute with value "id1"). I'm not sure if that is the most efficient way of accessing the problem (computational power might be an issue), and would appreciate some help on the subject.
>
> Thanks,
> [Message sent by forum member 'victornik' (victornik)]
>
> http://forums.java.net/jive/thread.jspa?messageID=220227
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the body
> of the message "signoff KVM-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".
>
> --------------------------------
> Spam/Virus scanning by CanIt Pro
>
> For more information see
> http://www.kgbinternet.com/SpamFilter.htm
>
> To control your spam filter, log in at
> http://filter.kgbinternet.com
>
>

--
C. Enrique Ortiz
eortiz@j2medeveloper.com
512-635-4225
http://www.CEnriqueOrtiz.com
http://www.CEnriqueOrtiz.com/weblog
http://www.MobileMondayAustin.org
http://www.AustinWirelessAlliance.org

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

victornik
Offline
Joined: 2007-06-02

Ok thanks, I'm trying to make it work now. I thought a parser was what did that but I wasn't sure, and after some google searchs didn't find anything I could use so I asked here.
Thanks again,
Vic