|
by: Martin Honnen |
last post by:
With both .NET 1.0 and 1.1 I have found the following strange behaviour
where System.Xml.XmlDocument.LoadXml doesn't throw an error when parsing
a text node with a character reference to an invalid characters like .
Using the CreateTextNode method I create a text node containing
"\u0001a" (C# string literal notation). As far as I understand the DOM
allows that and an implementation is not required to throw an error.
When OuterXml is...
|
by: Eric Zechman via .NET 247 |
last post by:
I have a project in which I get xml posted via a hidden form field (data=<xml></xml>). People are entering names like Bill & Sandy Smith. this is coming over as:
<NameInfo><FamilyName><FamilyNames>David & Karen</FamilyNames><Surname>Adams</Surname></FamilyName></NameInfo>
When I try to load this up in a XmlDocument it blows up.
string xmlData = Request.Form;
dom.LoadXml(xmlData);
results with this:
"This is an unexpected token. The...
|
by: AJ Brown |
last post by:
I'm loading an XmlDocument object from a string using LoadXml. The
string is a well-formed XML fragment (see example) and loads fine,
however there are entities (&) within attribute values. The loader
parses the incoming entities and converts them to their character
references automatically. How would I retain the entity?
Example incoming fragment:
<company name="B & B Electric" />
|
by: pete |
last post by:
Hi there,
Can someone explain to me why I can't bind to an XmlDocument but I can bind
to an XmlNodeList. It's my understanding that they both implement the
IEnumerable interface which is required for databinding. Am happy to work
with the XmlNodeList but I can't shake the feeling I'm missing something
<blush>
Thanks, Pete
|
by: David Thielen |
last post by:
Hi;
Once I have loaded an xml file into a DOM, is there any way to then get any
namespace declarations that were in the xml file? Or are those just discarded
as the DOM is populated?
And if you can't get it from the DOM, any other way to get the namespace(s)?
I'm assuming doing a SAX read which returns each element including NameSpaces
and pull it form that (and build up the DOM at the same time)?
|
|
by: Chad Scharf |
last post by:
I am having difficulty taking an xml string passed as a
string from a web service. I am not using SOAP, but rather
calling the web service within an ASP.NET web form.
Reviewing the XML object model I am only finding file
parsing and I/O stream handling. Can anyone help out with
how this would be done?
This is just a simple test to get the returned method
values which are returned from the web service as a string.
|
by: Lupina |
last post by:
Hi
I want load whole xml file, I try do it in the same way as I did it in
windows application.
try
{
XmlDocument myDoc = new XmlDocument();
|
by: David Ricker |
last post by:
Hi,
Does anyone have any ideas as to why the LoadXml statement in the
following code takes so 8-10 seconds on a 2.4 GHz machine? Just seems to
me that it should be a great deal faster. Also if there is a faster way of
doing it, please let me know.
Thanks,
Dave
|
by: ian |
last post by:
Hi, I've got the weirdest garbage collection problem - I'd appreciate any
advice you've got.
1. A class 'X' in a system I'm working on contains a reference to an
XmlDocument, populated via LoadXML.
2. Objects of type X are reused alot so different XML is loaded numerous
times.
3. If I keep this reference, the system looses more and more memory until it
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
|