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] Updated: (OFBIZ-1947) UitlXml.java new routine to remove tags return value.
Date Wed, 03 Sep 2008 21:55:44 GMT

     [ https://issues.apache.org/jira/browse/OFBIZ-1947?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Adrian Crum updated OFBIZ-1947:
-------------------------------

    Attachment: UtilXml.patch

UtilXml.patch takes some of the document building code out of readXmlDocument(...) and puts
it in a new method - makeDocumentBuilder(...).

So, if you want to parse an extremely large XML file, get a DocumentBuilder instance by calling
makeDocumentBuilder(...), call DocumentBuilder.parse(...) with your file fragments, and then
process the returned Document instance accordingly.


> 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, UtilXml.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