473,385 Members | 1,796 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

XMLTextWriter (VB.NET) problem with quotes and brackets

I am writing an XML file using XMLTextWriter and running into a problem with
the following code

xtm.WriteAttributeString("subject", fullsubject.Trim)

fullsubject here is a string like "a quick 'brown' fox jumped < over the
"cow" who was sleeping"

The xml file output replaces the " and < etc with stuff like &quot; &lt .
Problem is this file is then read into tnaother program which doesnt
substitute the &quot; &lt with the actual characters they represent.

Is there a way to get past this?

Nov 12 '05 #1
2 1687
Fix the bug in the other program.
"Dennis Mennis" <ss********@NOSPAM.comcast.net> wrote in message
news:Sr********************@giganews.com...
I am writing an XML file using XMLTextWriter and running into a problem
with the following code

xtm.WriteAttributeString("subject", fullsubject.Trim)

fullsubject here is a string like "a quick 'brown' fox jumped < over the
"cow" who was sleeping"

The xml file output replaces the " and < etc with stuff like &quot; &lt .
Problem is this file is then read into tnaother program which doesnt
substitute the &quot; &lt with the actual characters they represent.

Is there a way to get past this?

Nov 12 '05 #2


Dennis Mennis wrote:
I am writing an XML file using XMLTextWriter and running into a problem with
the following code

xtm.WriteAttributeString("subject", fullsubject.Trim)

fullsubject here is a string like "a quick 'brown' fox jumped < over the
"cow" who was sleeping"

The xml file output replaces the " and < etc with stuff like &quot; &lt .
That is necessary to have well-formed markup entitled to be called XML,
as < has special meaning (opens a start or end tag) it needs to be
escaped as &lt; (& l t ;) when it doesn't delimit a tag.
Problem is this file is then read into tnaother program which doesnt
substitute the &quot; &lt with the actual characters they represent.


Then the other program can't deal with XML so perhaps you do not want
XML originally.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: gerben | last post by:
LS, I want to make a content management system. Therefore I have to be able to change the content of my mysql database. I'm writing the content to text boxes in forms, to be able to edit them. ...
0
by: Ed | last post by:
hi, Hi,everbody My os is Winxp (pro) , Studio.net2003 and create asp.net with vb.net, i have a problems this: 1. I have a *.xls(xp) and need to change to SQL server 2000 but i don't how can i...
1
by: scott | last post by:
Can someone help me my quotes in LISTING 2 below? LISTING 1 works fine in HTML, but I'm having trouble with quotes in LISTING 2 near the javascript code when trying to response write the entire...
1
by: Hari | last post by:
Hi Friends, Please help me for make a solution for the following problem : - I would like to use SQL server 2000 with my exisitng MFC based data acquision/presentation application. I prefer...
7
by: Lucas Campos | last post by:
Hi, I have an ASP.Net application that was developed with VS.Net 2002, Net FWK 1.0 and win 2000 platform. Is there any known drawback to execute it over a Win 2003 server? Does we have to migrate...
5
by: josephrthomas | last post by:
hi.. i am using ASP.NET with VB.NET to connect to a MS Access database... can someone pls tell me how do i make the sql statement to insert a new record into the existing table pls?? also...
3
by: karunakar | last post by:
Hi All How to append the string with Quotes I want to show Output like this = "test" I want to show the word like this "test" Help me out
6
by: ´ï´ï | last post by:
How to connect asp.net with Oracle Database? Where and How to? Thanks very much.
2
by: Darren Halliday | last post by:
I am having difficulty setting my Windows 2000 machine to run ASP.NET files. I have installed IIS I have Installed the .NET Framework 1.1 I try to create an ASP.NET Application from Visual...
5
by: atlanteavila | last post by:
Hello all, I have a problem with inserting text with quotes, or html code in to a MYSql Database. I've been trying to create my own content management system, and unfortunately I've come accross a...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.