all groups > dotnet xml > november 2006 > threads for november 8 - 14, 2006
Filter by week: 1 2 3 4 5
Does XmlTextWriter encode HTML?
Posted by darrel at 11/14/2006 4:42:33 PM
I'm trying to get ASP.net to write out some XML including HTML from a DB:
The HTML is stored in the DB as encoded HTML. I'm trying to decode it and
write it to an XML node (The HTML is valid XML). I have this:
objXMLWriter.WriteElementString("text",
Trim(System.Web.HttpContext.Current.Serv... more >>
Extra Backslash After LoadXML
Posted by binder at 11/14/2006 8:10:25 AM
How do I eliminate an extra backslash that is appearing after LoadXML
call?
This issue is causing an error with Process.Start.
I have a string stored in sql: c:\program files\internet
explorer\iexplore.exe
If I look at this data when I write the dataset to an XML file, the
data is correct.... more >>
Question regarding WriteElementString
Posted by janus1114 at 11/14/2006 4:31:02 AM
Hello,
I'm using XMLTextWriter to create a XML file from a database table.
I use WriteElementString to create elements. I'm having two issues:
1. When a data field is null, I get an error.
XMLTextWriter.WriteElementString("Name", dr("Name"))
2. When a data field is a date/timestamp ... more >>
XMLHTTP and SOAP Exception
Posted by Andrea Cogliati at 11/14/2006 2:29:02 AM
I'm accessing a Web Service through XMLHttp object from a JavaScript client
code. I don't understand how to appropriately handle exceptions from the Web
Service.
Does anyone have a piece of code of a Web Service throwing an exception and
a client code catching it?
TIA,
Andrea... more >>
How to serialize a string as a CDATA attribute ?
Posted by James Smith at 11/13/2006 8:00:50 PM
Hi,
the below string will have often char like < & etc. so I need to
serialize it as CDATA. Unfortuntalety there is no CDATA type for the
XmlAttribute(Type=...
How can I get this serialized to a CDATA string ?
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
... more >>
How to escape single quotes
Posted by Marina Levit [MVP] at 11/13/2006 2:19:03 PM
I've scoured google, but apparently none of the suggestions actually work.
I have the following. type of XPATH query
"SomeNode[SomeAttribute = 'abc's search'"
Now, I've tried doing this:
"SomeNode[SomeAttribute = 'abc@apos;s search'"
and I've tried
"SomeNode[SomeAttribute = 'abc@qu... more >>
/r/n (13-10) (carriage return - line feed) in web services
Posted by Enrico Sabbadin at 11/13/2006 12:00:00 AM
Hi,
A few days go I fiund iut that the xmlserializer strips away /r/n out during
deserialization (and just leave /n)
... I found out that you can resolve this problem using the deserialize
overlaod that takes an xmltextreader instead of a stream ..
However when it's time to Web Services you... more >>
Characters /r/n%20%20 in blank tags?
Posted by Harry Whitehouse at 11/11/2006 1:18:33 PM
Hi!
I have a Webservice which returns an XMLDocument type. In viewing the raw
output steam, I noticed that if a tag value is blank, the data stream
actually looks like this:
<MyTag>\r\n </MyTag>.
A CR/LF followed by two spaces.
I have a special client to recieve this stream genera... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Geting Element value using MSXML 2
Posted by ArunArangil at 11/10/2006 9:45:02 AM
I need to find the value of a single element from an xml. When i write the
code below it returns me the entire text withing the node as
NetworkD11233456. Instead how can i get just D11233456 within the
if(nodeDevice == 'Device 1') condition.
var txt="<?xml version='1.0'?><Devices>"
txt=tx... more >>
XmlNamespaceManager problem with Office OpenXML format
Posted by peterloh NO[at]SPAM gmail.com at 11/9/2006 10:13:35 PM
Hi,
I'm trying to read a simple Word 2007 document with the contents of
"This is a test."
Could someone please enlighten me about why the following code doesn't
work...
Dim strXMLDocument As String = "<?xml version=""1.0""
encoding=""UTF-8"" standalone=""yes""?><w:document
xmlns:ve=""ht... more >>
XML Schemas (SOM) - Finding order of elements
Posted by Bardo at 11/9/2006 12:00:00 AM
Hi all,
I am a newbie to using the XML Schema Object Model (SOM) and would like a
few pointers on how to perform a particular task.
I am essentially trying to search for elements/attributes via the SOM as
they appear in a visual XML editor (as in the tree view).
I need to be able to:
1. St... more >>
How to create this with XmlTextWriter
Posted by Terry Olsen at 11/8/2006 7:49:05 PM
Is this even possible using XmlTextWriter? Or would I need to use an
XmlDocument?
I need to create the following XML:
<?xml version="1.0"?>
<AccessRequest xml:lang="en-US">
<AccessLicenseNumber>YOURACCESSLICENSENUMBER</AccessLicenseNumber>
<UserId>YOURUSERID</UserId>
<Password>YOUR... more >>
xml question
Posted by Paul at 11/8/2006 9:06:02 AM
Hi I am trying to create the following line in an xml fileusing the xml writer,
<Style ss:ID="Default" ss:Name="Normal">
I have ss set up as a namespace I think, see below.
Dim spreadsheetNamespace As String =
"urn:schemas-microsoft-com:office:spreadsheet"
writer1.WriteAttributeString("xmln... more >>
Want to replace obsolete methods
Posted by Craig HB at 11/8/2006 5:21:02 AM
I have been using the code below to validate an XML document with an XML
schema. If the XML is not valid, then the procedure throws an exception. I
have upgraded the application using this proc to DotNet 2 and Visual Studio
says that I'm using obsolete methods:
XmlValidatingReader : shoul... more >>
|