[nfbcs] xml file

Aaron Cannon cannona at fireantproductions.com
Fri Jul 19 02:48:33 UTC 2013


Hi.

Typically in xml documents, < and > and a few other symbols are
encoded with an ampersand, followed by some characters, followed by a
semicolon.  When I need to convert these to there values, I will first
run my regexp to remove the html tags, and then do a simple search and
replace for these special entities.

Hopefully, you can get your device to work with the xml directly, as
this is a very poor method of converting XML to plain text.  Sure,
you'll be able to read just the text without the XML tags, as you
requested, but you'll lose all of the structural data.

Good luck.

Aaron



On 7/18/13, Bryan Schulz <b.schulz at sbcglobal.net> wrote:
> hi,
>
> it's not that simple, how would you remove the xml tags and still leave <,
>  >, ect involved in css code?
> Bryan Schulz
>
>
> ----- Original Message -----
> From: "Aaron Cannon" <cannona at fireantproductions.com>
> To: "NFB in Computer Science Mailing List" <nfbcs at nfbnet.org>
> Sent: Thursday, July 18, 2013 9:16 PM
> Subject: Re: [nfbcs] xml file
>
>
>> Hi.
>>
>> If your editor supports global search and replace with a regular
>> expression, which many do, though others do not, there should be no need
>> to go line by line through the file.
>>
>> Good luck and let me know if you need help with writing a suitable regular
>>
>> expression.
>>
>> Aaron
>>
>> --
>> This message was sent from a mobile device
>>
>>
>> On Jul 18, 2013, at 8:37 PM, "Bryan Schulz" <b.schulz at sbcglobal.net>
>> wrote:
>>
>>> hi,
>>>
>>> already tried it,
>>> not going line by line thru a whole e-book.
>>> how does the first gen victor stream do with pdf or epub?
>>> Bryan Schulz
>>>
>>>
>>> ----- Original Message ----- From: "Aaron Cannon"
>>> <cannona at fireantproductions.com>
>>> To: "NFB in Computer Science Mailing List" <nfbcs at nfbnet.org>
>>> Sent: Thursday, July 18, 2013 8:22 PM
>>> Subject: Re: [nfbcs] xml file
>>>
>>>
>>>> Sometimes, if you open an XML file in Internet explorer, it will do its
>>>>
>>>> best to display it. You might try that. Otherwise, you could clean it up
>>>>
>>>> quite easily with a simple regular expression, assuming that you have an
>>>>
>>>> editor that supports them.
>>>>
>>>> Aaron
>>>>
>>>> --
>>>> This message was sent from a mobile device
>>>>
>>>>
>>>> On Jul 18, 2013, at 7:48 PM, "Bryan Schulz" <b.schulz at sbcglobal.net>
>>>> wrote:
>>>>
>>>>> hi,
>>>>>
>>>>> is there an easy way to view xml files without the coding tags so just
>>>>>
>>>>> the text can be read?
>>>>> Bryan Schulz
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> nfbcs mailing list
>>>>> nfbcs at nfbnet.org
>>>>> http://nfbnet.org/mailman/listinfo/nfbcs_nfbnet.org
>>>>> To unsubscribe, change your list options or get your account info for
>>>>> nfbcs:
>>>>> http://nfbnet.org/mailman/options/nfbcs_nfbnet.org/cannona%40fireantproductions.com
>>>>
>>>> _______________________________________________
>>>> nfbcs mailing list
>>>> nfbcs at nfbnet.org
>>>> http://nfbnet.org/mailman/listinfo/nfbcs_nfbnet.org
>>>> To unsubscribe, change your list options or get your account info for
>>>> nfbcs:
>>>> http://nfbnet.org/mailman/options/nfbcs_nfbnet.org/b.schulz%40sbcglobal.net
>>>
>>>
>>> _______________________________________________
>>> nfbcs mailing list
>>> nfbcs at nfbnet.org
>>> http://nfbnet.org/mailman/listinfo/nfbcs_nfbnet.org
>>> To unsubscribe, change your list options or get your account info for
>>> nfbcs:
>>> http://nfbnet.org/mailman/options/nfbcs_nfbnet.org/cannona%40fireantproductions.com
>>
>> _______________________________________________
>> nfbcs mailing list
>> nfbcs at nfbnet.org
>> http://nfbnet.org/mailman/listinfo/nfbcs_nfbnet.org
>> To unsubscribe, change your list options or get your account info for
>> nfbcs:
>> http://nfbnet.org/mailman/options/nfbcs_nfbnet.org/b.schulz%40sbcglobal.net
>>
>
>
> _______________________________________________
> nfbcs mailing list
> nfbcs at nfbnet.org
> http://nfbnet.org/mailman/listinfo/nfbcs_nfbnet.org
> To unsubscribe, change your list options or get your account info for
> nfbcs:
> http://nfbnet.org/mailman/options/nfbcs_nfbnet.org/cannona%40fireantproductions.com
>




More information about the NFBCS mailing list