ofbiz-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrian Crum (JIRA)" <j...@apache.org>
Subject [jira] Commented: (OFBIZ-1947) UitlXml.java new routine to remove tags return value.
Date Wed, 03 Sep 2008 21:41:44 GMT

    [ https://issues.apache.org/jira/browse/OFBIZ-1947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12628152#action_12628152
] 

Adrian Crum commented on OFBIZ-1947:
------------------------------------

I understand the problem you are trying to solve. But your solution is too simplistic. For
instance, how would your patch handle a line like

<outer-element><inner-element>someValue</inner-element></outer-element>

?

I'll post a patch that I think will be helpful.


> UitlXml.java new routine to remove tags return value.
> -----------------------------------------------------
>
>                 Key: OFBIZ-1947
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1947
>             Project: OFBiz
>          Issue Type: New Feature
>          Components: framework
>            Reporter: BJ Freeman
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: Utilsxml.patch
>
>
> I have a need to read in  megabyte XML files
> so i am not pulling it into memory but reading as a stream
> one line at a time.
> I have a string <somestring>value</somestring>
> I have a routine that just returns the value.
> I would like to add it to the UtilXml.java

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message