all groups > dotnet xml > march 2005 > threads for march 15 - 21, 2005
Filter by week: 1 2 3 4 5
Getting an integer value (in one line) out of SelectSingleNode from an XMLDoc.
Posted by Sashi at 3/21/2005 11:43:35 PM
[C# code oriented]
Two questions:
(1)
I can pull the text of an XML element as a string just fine using code
as such:
strSomeString =
myXmlDoc.SelectSingleNode("/Element1/Element2/Element3[1]",
myXmlNSMgr).InnerText;
However, the text to be found there is an integer number. I have t... more >>
Accessing DataSet
Posted by Yama at 3/21/2005 5:49:02 PM
Hi,
I have the following loaded into a dataset:
<xml version="1.0" encoding="UTF-16">
<xml xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882"
xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema">
<s:S... more >>
DOCTYPE with Xml Serialization
Posted by Vlad at 3/21/2005 5:48:09 PM
I have a class that serialize using the XmlSerializer.
I am using several attributes for class members to control serialization
process.
One thing I cannot figure out how to do is how to add DOCTYPE attribute to
the file.
This XML file must use the doctype that refers to the DTD rather than an
... more >>
XML Encoding question (C#)
Posted by Mike at 3/21/2005 4:49:03 PM
Hi! I have the following problem:
I am getting an XML file from a 3rd party. The encoding on the XML file is
encoding="utf-8"
I have no control over generation of this file. This file is produced by a
Lotus Notes system and often has illegal characters embedded to it. Of course
the .NET ... more >>
XPath GetAttributes Problem
Posted by yonta via .NET 247 at 3/21/2005 12:49:26 PM
Hi
I need to select several nodes (title) on an xml document based on an atrribute(user) and then read from each selected element (title) another attribute(nomequiz).
Here's my code so far but it isn't working..
Would really appreciate some help. Got really stuck. I already tried with xmlDo... more >>
Should System.Xml.NameTable be deprecated?
Posted by Mark Bosley at 3/21/2005 12:21:54 PM
There seems to be little interest in this object, the docs are wrong and it
doesn't do much.
Two years ago, it was pointed out that the documentation is nonsensical
(http://groups-beta.google.com/group/microsoft.public.dotnet.framework/browse_thread/thread/3e621115f78943e2/38232c4e9c0bdd64?q=M... more >>
SoapExtensions & RequestSoapContext
Posted by Manoj G at 3/21/2005 10:31:04 AM
Hello,
I was working with WSE & SoapExtensions and I realized something subtle, but
could be an issue to consider.
Using the SoapExtensions, I alter the contents of the SOAP message before
the deserialization happens on the server. Now, in my web method, if I check
the contents of the e... more >>
XSD - How to create a default XML
Posted by Stefano at 3/21/2005 9:40:08 AM
Hi all,
I defined a XML Schema... so I've a .xsd file.
I defined the schema using "default" attribute... for example:
<xs:element name="color" type="xs:string" default="red"/>
Now, I would like to generate an empty XML file, from the XML Schema.
How can I do that?
Thanks a lot.
By... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How to keep XSLs in Memory?
Posted by Alexis at 3/21/2005 6:59:04 AM
Hello,
I'm working on a project that uses over a hundred XLSs for transforming xml
documents. The project consists of several webservices (IIS) calling a few
dlls. This dlls make the business logic and are the ones that do the
transformation, so the XLSs are used by these dlls. Right now we... more >>
view xml from web in a datagrid
Posted by Mike & Dyan at 3/20/2005 1:27:45 AM
I would like to go to this web address
http://setiathome2.ssl.berkeley.edu/classpages/days/2452829.html
and be able to pull the info off of it and display it in a datagrid. I am
assuming that I will have to put the info into a dataset to be able to view
the info in the datagrid. At least poi... more >>
Exception on XmlDocumet.Load()
Posted by Chris at 3/20/2005 12:00:00 AM
Hi,
I have xml files which contain a <!DOCTYPE> with a link to a dtd. On my
local computer this this link is invalid as it refers to a folder that
does not exist. The link has the format "file://localhost...".
Using an System.Xml.XmlDocument object and calling the Load() function,
the pars... more >>
Using a form to add records to XML document
Posted by kyma via .NET 247 at 3/19/2005 8:54:11 AM
Hi,
I haveto use VB to create a form that reads an exisiting XML file=
and then allows updates via the VB form=2E
My problem is that I was able to get VB to read a simple XML file=
(people=2EXML), but I'm having problems figuring out how to get VB=
to read a more complex XML file (people... more >>
XmlTextReader; XmlException
Posted by edi at 3/19/2005 6:57:20 AM
Hi,
I have MS .Net Framework v1.1.4322.
I have this XML file:
<?xml version="1.0" ?> <!--here there are two spaces at the
beginning-->
<aaa>
<a id="1">
<Dept>Finance</Dept>
</a>
<a id="2">
<Dept>Marketing</Dept>
</a>
</aaa>
This file opens correctly with Internet Expl... more >>
XML database
Posted by James at 3/18/2005 12:09:35 PM
Hi - I am looking to start a custom database for a small company. I have
normally used Access data storage but have been looking into Xml as a
possible data storage - what are the draw backs of using xml. I believe
speed is an issue but at what size does does an xml database become
unviable ... more >>
Change node attribute value
Posted by Grant at 3/18/2005 10:53:58 AM
How would I change the value of an attribute in an XML node using C#?
I have tried "findnode.Attributes["ID"].InnerText = newValue;"
and
"Attribute attri = (XmlAttribute)findnode.Attributes["ID"].Value;"
but Im stuck! When I try casting, it say that it cannot convert a string to
an XMLAttr... more >>
Xml Document Loads in IE but not .NET
Posted by Kevin at 3/18/2005 9:56:39 AM
I have the following Xml document (see end of post) with many external
resources that need to get resolved. When I "view" the Xml document in
Internet Explorer (Windows XP SP2, IE 6.0.2900) all of the external
resources and namespaces are resolved properly. However, when trying
to load the doc... more >>
XMLTextWriter (VB.NET) problem with quotes and brackets
Posted by Dennis Mennis at 3/17/2005 9:38:45 PM
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 <... more >>
Create sql db from xsd
Posted by Martin Evans at 3/17/2005 8:02:59 PM
Is it possible to create an access or sql db from an xsd schema and if so
what tool do you use
Martin
... more >>
Basic XML File Creation / Editing
Posted by sam.collett NO[at]SPAM gmail.com at 3/17/2005 8:50:47 AM
Is there a basic guide on Xml document creation and editing (simpler
than the MSDN docs). Say I want to create a file containing the
following:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Files>
<File>
<Text>Test</Text>
<Name>Test.html</Name>
</File>
</Files>
I kno... more >>
whats the fastest way to lookup nodes in a list
Posted by microsoft at 3/17/2005 8:33:52 AM
I have a very "flat" doc structure like this
<root>
<one>
<two>
<three>
...
n <=100
</root>
And i was wondering what is the fastest method for finding the Nth sub
element of root with a specific node name.
Or the quickest way to find the node whose name might be "... more >>
XPathDocument to xmldocument
Posted by vikram at 3/16/2005 10:31:10 PM
How to create XPathDocument object from xmldocument object
thanks... more >>
XMLDOM to XML in asp.net
Posted by vikram at 3/16/2005 10:22:49 PM
How to do the same task described below using xmldocument
in asp.net :
var xmlDoc
var xslDoc
xmlDoc = new ActiveXObject('Microsoft.XMLDOM')
xmlDoc.async = false;
xslDoc = new ActiveXObject('Microsoft.XMLDOM')
xslDoc.async = false;
xmlDoc.load("tree/tree.xml")
xslDoc... more >>
How to receive and send XML using .NET
Posted by Jeffrey Roughgarden at 3/16/2005 7:51:09 PM
I would like to receive XML over the internet (via HTTP Post or SOAP), read
it, perform some server side operations, and send back an XML response that
would depend on the contents of the XML received. Seems simple, but I cannot
find a good example of how to do this.
In the Microsoft "Devel... more >>
Best way to display XML
Posted by Estela at 3/16/2005 3:49:17 PM
Hello, i have a big XML file, i load the xml to a xmldocument.
My question is, how is the best way to display de information (aspx page).
I tryng load the xml into a dataset an then displaying into a grid, but the
structure of the xml (combinations of the attributes and nodes) is dificult
to... more >>
Parsing XML nodes by Attribute
Posted by Grant at 3/16/2005 2:44:53 PM
I have this simple xml file which wont ever get beyong 3 nodes deep. I need
to get the value of the child node of any node with an id of '63'. So fir
instance I would be returned 'False' from the example below.
Ive attached an XML snippet and a cC# code snippet. The piece of code is not
wor... more >>
LoadXml causing extra space in abbreviated end tag
Posted by Matt Bush at 3/16/2005 2:29:26 PM
Using .NET Framework 1.1 and Visual Studio .NET 2003. Language is VB.NET.
When loading an XML String using XMLDocument.LoadXml we are getting an extra
space inserted into abbreviated end tags:
objXmlDoc.XmlResolver = Nothing
objXmlDoc.LoadXml(XmlData)
....
....
objXmlDoc.InnerXml (gets ... more >>
Schema For A Testing Application
Posted by Mark Jerde at 3/16/2005 12:28:37 PM
I'm working on a testing application. It will run on multiple computers.
Each computer has the same "suite" of tests. The test operator can choose
which tests to run. It is expected that each computer will test several
components many times each to ensure the component is reliable.
One run ... more >>
XPath
Posted by mfraser NO[at]SPAM henwoodenergy.com at 3/16/2005 12:19:20 PM
Ok I have the following XML:
<Root>
<DataType xmlns:vi="http://acme.com/ValueItem.xsd"
xmlns:dd="http://acme.com/DataDef.xsd" DataTypeID="1"
xmlns="http://acme.com/ConstantDataType.xsd">
<Data>
..
..
..
</Data>
</DataType>
<Root>
I am creating the following namespace table
m_nsManag... more >>
load fragment into xmldocument without sqlxml
Posted by Joe Gass at 3/16/2005 11:09:14 AM
Hi
I have a query that uses for xml auto
I'd like to load this into an xmldocument with an xmlreader
e.g.
Dim xr As XmlReader
xmlDoc = New XmlDocument
xr = oCom.ExecuteXmlReader
If xr.Read Then
xmlDoc.Load(xr)
End If
This fails as there is not root node.
I've seen that a SqlXmlCom... more >>
URGENT: Formatting ADO style XML
Posted by Yama at 3/16/2005 10:47:04 AM
Hi,
I am writing a windows form that will query the database.
string query = "SELECT TOP 2 * FROM Northwind.dbo.Customers" ;
DBQuery Q = new DBQuery() ;
bool result = dbCommander.RunQuery(query, true, ref Q) ;
if(result)
{
stream = new MemoryStream(Q.DataAsByteArray, false) ;
stream... more >>
Force XmlSerializer to use explicit closing tags for zero-length strings?
Posted by scott.ballard NO[at]SPAM gmail.com at 3/16/2005 7:54:30 AM
Greetings,
I am using the .Net Framework XmlSerializer to serialize a class that
contains some string properties. The problem is that when a string
contains a zero-length string ("") it is serialized as:
<foo />
When what I would really like is:
<foo></foo>
Now I know the former is... more >>
Is this valid XML?
Posted by Dean Slindee at 3/15/2005 12:20:42 PM
A business partner wants an XML file to be transmitted as thus:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
- <submission cmo:submission_type="production"
xmlns="http://www.familycarewi.org" xmlns:cmo="http://www.familycarewi.org"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instanc... more >>
Preserve caracter entityes
Posted by vidar.martinsen NO[at]SPAM ft.dep.no at 3/15/2005 4:50:53 AM
Hi
I have a problem preserving caracter entities using XslTransform
object
in VB.net.
If I use saxon or even dot.net in Stylus studio for convertion, there
is no problem.
The problem is that when I convert using XSLT (I use
encoding="iso-8859-1")
the caracter entities that are higher tha... more >>
|