[jira] Created: (OFBIZ-1947) UitlXml.java new routine to remove tags return value.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
20 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (OFBIZ-1947) UitlXml.java new routine to remove tags return value.

Nicolas Malin (Jira)
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
             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.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-1947) UitlXml.java new routine to remove tags return value.

Nicolas Malin (Jira)

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

BJ Freeman updated OFBIZ-1947:
------------------------------

    Attachment: Utilsxml.patch

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

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-1947) UitlXml.java new routine to remove tags return value.

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

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

    Priority: Minor  (was: Major)

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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1947) UitlXml.java new routine to remove tags return value.

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

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

BJ,

Don't forget to check for errors - like ">" or "<" wasn't found in the argument, or the argument is null.

Also, why not use the String.replace(...) method?



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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1947) UitlXml.java new routine to remove tags return value.

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

BJ Freeman commented on OFBIZ-1947:
-----------------------------------

can not use string replace since don't know what the tag is.<somestring>

did not check for <> because that was done before calling this.

however if you think is important will add the checking.



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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1947) UitlXml.java new routine to remove tags return value.

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

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

Actually, thinking about this more - it would be more useful to the community as a whole if there was a toElement(String line) method, which would return a DOM Element instance. Then you could use the existing UtilXml methods to extract values, attributes, child elements, etc.



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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1947) UitlXml.java new routine to remove tags return value.

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

BJ Freeman commented on OFBIZ-1947:
-----------------------------------

that would work for someone using Dom.
However this is more for reading a stream.
This becuase I am reading in 100's of megs xml file.
Dom takes up to much memory, when i start parsing the file and really slows down the import.


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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1947) UitlXml.java new routine to remove tags return value.

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ 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.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-1947) UitlXml.java new routine to remove tags return value.

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ 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.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1947) UitlXml.java new routine to remove tags return value.

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

BJ Freeman commented on OFBIZ-1947:
-----------------------------------

I like simple, not a lot of memory and speed.
so I will stick with mine.


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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1947) UitlXml.java new routine to remove tags return value.

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

BJ Freeman commented on OFBIZ-1947:
-----------------------------------

BTw I am not dealing with
<outer-element><inner-element>someValue</inner-element></outer-element>
I use
             while (null != (aLine = fin.readLine())) {

                if (aLine.equalsIgnoreCase("<outer-element>"))
                    doouter-element = Boolean.TRUE;

                    if (doouter-element == Boolean.TRUE) {
                        outer-elementList.add(UtilXml.RemoveTags(aLine));


                if (aLine.equalsIgnoreCase("</outer-element>")) {
                    doouter-element = Boolean.FALSE;
                     // store nner-element in ofbiz
                    outer-elementWorker.Process( outer-elementList);

}
I only put in one example but there are many in the while loop.
it takes out the time, to read in the complete segment with dom, the parsing the dom to get to the end result.
for writing Import routines that are smart this gives the most flexiblity, speed, and low use of memory, using the outer-elementWorker class.



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

Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (OFBIZ-1947) UitlXml.java new routine to remove tags return value.

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

David E. Jones closed OFBIZ-1947.
---------------------------------

    Resolution: Won't Fix
      Assignee: David E. Jones


If you want to handle large files and not parse them into memory then the UtilXml class, or any utility class, just isn't the way to go.

You should write a SAX style XML processor. For even faster stuff, use the Javolution SAX classes, meaning your SAX processor class should inherit from javolution.xml.sax.ContentHandler.

For a good example of this in OFBiz look at the EntitySaxReader class which is used for importing large entity XML files efficiently.

So no, we don't want any additions like this to UtilXml because it isn't a good way to handle processing of large XML files.

-David

> 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
>            Assignee: David E. Jones
>            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.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1947) UitlXml.java new routine to remove tags return value.

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

BJ Freeman commented on OFBIZ-1947:
-----------------------------------

Knowing your outlook on code I can see you point
however the EntitySaxReader  does use memory (cache)
I did not find a way to limit how much it reads into memory.
so it does not meet my requirements.
It does a stream but reads it into memory. a whole element at least.
the BufferedReader does read into memory but
BufferedReader(Reader in, int sz)
lets me set how much, which may not be even a complete Element  XML.
the cost in time is minimal for successive reads.

Believe it or not I did do a XML version when I first started writing these and it is way slower.
and yes you may say it is from poor programming, I don't think so ofcourse.

Then there is the converting of the xml created to the map, to call a service, I miss that step.
No problem, I will just activate it back in my own library.
:)



> 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
>            Assignee: David E. Jones
>            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.

Reply | Threaded
Open this post in threaded view
|

[jira] Issue Comment Edited: (OFBIZ-1947) UitlXml.java new routine to remove tags return value.

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

bjfreeman edited comment on OFBIZ-1947 at 9/3/08 8:31 PM:
-----------------------------------------------------------

Knowing your outlook on code I can see you point
however the EntitySaxReader  does use memory (cache)
I did not find a way to limit how much it reads into memory.
so it does not meet my requirements.
It does a stream but reads it into memory. a whole element at least.
I used the webtools to import a 20 meg file and it took way longer to than the 80mb and 500mb files I import
the BufferedReader does read into memory but
BufferedReader(Reader in, int sz)
lets me set how much, which may not be even a complete Element  XML.
the cost in time is minimal for successive reads.

Believe it or not I did do a XML version when I first started writing these and it is way slower.
and yes you may say it is from poor programming, I don't think so ofcourse.

Then there is the converting of the xml created to the map, to call a service, I miss that step.
No problem, I will just activate it back in my own library.
:)



      was (Author: bjfreeman):
    Knowing your outlook on code I can see you point
however the EntitySaxReader  does use memory (cache)
I did not find a way to limit how much it reads into memory.
so it does not meet my requirements.
It does a stream but reads it into memory. a whole element at least.
the BufferedReader does read into memory but
BufferedReader(Reader in, int sz)
lets me set how much, which may not be even a complete Element  XML.
the cost in time is minimal for successive reads.

Believe it or not I did do a XML version when I first started writing these and it is way slower.
and yes you may say it is from poor programming, I don't think so ofcourse.

Then there is the converting of the xml created to the map, to call a service, I miss that step.
No problem, I will just activate it back in my own library.
:)


 

> 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
>            Assignee: David E. Jones
>            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.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1947) UitlXml.java new routine to remove tags return value.

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

David E. Jones commented on OFBIZ-1947:
---------------------------------------

Don't be so passive aggressive, and don't give up so easily or you'll ever get anywhere.

If you have tested what you wrote and compared it to a SAX reader (the common approach for reading large files), why didn't you say so? Were I and others supposed to magically know that somehow?

If you want to contribute something, discuss and contribute, and do it with full and completed stuff, not little utility methods here and there since no one will know what the hell you're doing or talking about.

> 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
>            Assignee: David E. Jones
>            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.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1947) UitlXml.java new routine to remove tags return value.

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

BJ Freeman commented on OFBIZ-1947:
-----------------------------------

David this was not a discussion when you close an issue.
I did open up the subject on the email list,
no response except to put in a jira.
and I was discussing it with till you closed it.
and when you get to be 66 your fight is gone.
and I really don't have time to defend myself.


> 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
>            Assignee: David E. Jones
>            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.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1947) UitlXml.java new routine to remove tags return value.

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Jacques Le Roux commented on OFBIZ-1947:
----------------------------------------

I have some responsability in this misunderstanding.
I was the one who quickly suggested to open a Jira issue from the dev ML.
I think, following rules, I should have asked you more details before asking for Jira.
We could go back to this point and begin a discussion in dev ML :)

> 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
>            Assignee: David E. Jones
>            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.

Reply | Threaded
Open this post in threaded view
|

Re: [jira] Commented: (OFBIZ-1947) UitlXml.java new routine to remove tags return value.

Shi Yusen
In reply to this post by Nicolas Malin (Jira)
BJ,

I'm 41. I guess I'm quite young in the list.

But, I feel I'm still fighting, and, yes, you are not fighting. Playing?


在 2008-09-04四的 03:11 -0700,BJ Freeman (JIRA)写道:

> [ https://issues.apache.org/jira/browse/OFBIZ-1947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12628297#action_12628297 ]
>
> BJ Freeman commented on OFBIZ-1947:
> -----------------------------------
>
> David this was not a discussion when you close an issue.
> I did open up the subject on the email list,
> no response except to put in a jira.
> and I was discussing it with till you closed it.
> and when you get to be 66 your fight is gone.
> and I really don't have time to defend myself.
>
>
> > 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
> >            Assignee: David E. Jones
> >            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
>

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1947) UitlXml.java new routine to remove tags return value.

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

BJ Freeman commented on OFBIZ-1947:
-----------------------------------

Jacques:
I believe there is not much more to say, it is all here.
Don't think it is your responsibility.
The subject would have died a quite death on the mailing list.
But this was a good exercise.
I do appreciate you support.


> 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
>            Assignee: David E. Jones
>            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.

Reply | Threaded
Open this post in threaded view
|

[jira] Issue Comment Edited: (OFBIZ-1947) UitlXml.java new routine to remove tags return value.

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

bjfreeman edited comment on OFBIZ-1947 at 9/4/08 6:29 PM:
-----------------------------------------------------------

Jacques:
I believe there is not much more to say, it is all here.
Don't think it is your responsibility.
The subject would have died a quite death on the mailing list.
But this was a good exercise. It saved me a lot of work just to be cancled. :)
I do appreciate you support.


      was (Author: bjfreeman):
    Jacques:
I believe there is not much more to say, it is all here.
Don't think it is your responsibility.
The subject would have died a quite death on the mailing list.
But this was a good exercise.
I do appreciate you support.

 

> 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
>            Assignee: David E. Jones
>            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.