|
How do you get the attribute value using XPath in VB.Net 2003?
Hi,
How do you get the attribute value using XPath in VB.Net 2003?
Many thanks,
aushknotes...
|
4 |
12/29/2008 6:39:01 PM |
|
Generate XPathExpression from TreeView in C# OR Remember what user picked in TreeView
Hi,
I have what I thought would be a simple problem. I display some XML
data to a user in a TreeView (WindowsForms C# 2008). I'd like to
record what the user picked so I can highlight that choice next time.
I thought I'd be able to do something like:
TreeNode nd = treeView1.SelectedNode;
string savedValue = nd.FullPath;
Then, the next time around, I thought I could do something like...
|
2 |
12/19/2008 1:59:49 PM |
|
xsl in word xml
Hi,
I have the following xsl file which will map an xml to form a word xml.
At the top of the xsl, i have a param defined in the global section:
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml">
<xsl:output method="xml" />
<xsl:param name...
|
3 |
12/18/2008 4:26:06 PM |
|
XslCompiledTransform doesn't always match the root element
Hi all,
I have a strange behavior with XslCompiledTransform.
I use it to transform XmlDocuments (actually XmlDataDocument obtained
from calling XmlDataDocument() on a DataSet) to text/html/xml as this
(simplified):
Protected Function XmlTransform(ByVal doc As XmlDocument, ByVal
xsltfilename As String, ByVal xsltParameters As XsltArgumentList) as
String
Dim xsltCompiled As XslCompiledTr...
|
5 |
12/16/2008 4:49:13 PM |
|
Why is \r\n being converted to \n\n ?
OK, I'm at a total loss on this one..
When using C# to serialize data from an object to XML and back again, any
string values containing \r\n (i.e. Environment.NewLine) are being converted
to \n\n (i.e. char #10 #10, rather than #13 #10).
I've tried all sorts of workarounds suggested online (using XmlWriters and
XmlReaders instead of straight XmlSerializers etc), but haven't found the...
|
2 |
12/16/2008 12:22:22 PM |
|
XSL in-memory workflow
I'm using XmlTextWriter to build an XML tree, and save it to a file:
XmlTextWriter w = new XmlTextWriter(outputFile, Encoding.UTF8);
w.Formatting = Formatting.Indented;
w.WriteStartDocument();
...
w.WriteEndDocument();
w.Close();
w = null;
In the next version of my app, I want to add HTML output. The XSLT (1.1) for transforming the XML file to HTML is done, and works nice...
|
3 |
12/16/2008 9:14:58 AM |
|
Xpath sibling conditional?
If I have a document:
<InqRs>
<DetRs>
<RefInfo>
<RefType>StopNum</RefType>
<RefId>0</RefId>
</RefInfo>
<RefInfo>
<RefType>Id</RefType>
<RefId>0</RefId>
</RefInfo>
</DetRs>
<DetRs>
<RefInfo>
<RefType>StopNum</RefType>...
|
4 |
12/15/2008 3:30:48 AM |
|
XMLDoc.Load problem
Hi!
I'd like to know, how can I fix or ignore the XmlDocument Load or LoadXML
error when the XML file is wrong (unended tag, missing start tag, missing ""
from attribute ...), like IE Developer Toolbar or just a simple Browser?
Thx!
Hoszi
...
|
4 |
12/12/2008 7:34:39 PM |
|
struggling with canonicalization
Hello,
I have some probably very stupid questions about signing xml, but
hopefully someone will be able to help. (I've asked in the C# group as
well but not gotten an answer.)
I'm signing some xml documents, and although I never specify the
canonicalization method the SignedInfo node tells me it's
<CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-
c14n-20010315" /&...
|
3 |
12/12/2008 6:02:14 AM |
|
parse XDR type xml in C#.Net 2.0
Can anyone tell me how to parse the XML of type XDR.To validate the schema i
am using XMLValidatingReader as XMLSchemaSet doesnt support XSD format. I
know this is obselete in .NET 2.0
Following is my input Test.xml
<?xml version="1.0" ?>
<Test xmlns="x-schema:MySchema.xml" xmlns:Test="x-schema:TestSchema.xml"
xmlns:Testid="x-schema:TestIdSchema.xml">
<Info>
...
|
3 |
12/11/2008 6:51:22 AM |
|
Convert into XML
I am working in largest XML conversion company in India. We are
accurate XML conversion solutions provider in India at affordable
rates.
XML conversion services for convert your documents to various xml
formats such as html to xml, convert text to XML, convert PDF to XML,
Ms Word to XML conversion at affordable rates.
We are known for quality and accuracy. We offer one stop solutions
f...
|
3 |
12/10/2008 9:38:48 AM |
|
serializing to into an XmlDocument
Hi, I am trying to serialize a .Net object into a DOM document like
this:
Foo foo = ...;
XmlDocument doc = new XmlDocument();
XmlSerializer xmls = new XmlSerializer(typeof(Foo));
XmlWriter xw = doc.CreateNavigator().AppendChild();
xmls.Serialize(xw, foo);
However, the document always ends up empty. I can take the same object
foo and serialize it to a stream or TextWriter no problem.
...
|
5 |
12/9/2008 5:22:53 PM |
|
SignedXml.CheckSignature returns false when the root element has namespace declarations
Hi,
I am using SignedXml with RSACryptoServiceProvider to sign some XML.
the verification seems to work OK if there is no namespace declaration
on the root element of the XML but if there is one it always returns
false.
here's a complete example:
XmlDocument doc = new XmlDocument();
doc.LoadXml("<foo xmlns:foo=\"foo\" />");
SignedXml sx = new SignedXml(doc);
RSACryptoServicePr...
|
1 |
12/9/2008 4:32:03 PM |
|
XInclude.NET extensibility?
Can anyone give me any indicators on the level of extensibility of the
XInclude.NET project?
In particular, I would like to be able to do some custom pre-processing of
the included chunks based on, for example, custom child elements of the
xi:include element (W3C XInclude spec says such child elements are allowed
but ignored by an XInclude processor). Can XInclude.NET support this kind ...
|
1 |
12/8/2008 1:28:53 PM |
|
Error Serializing a Wrapped SortedList
This is a multi-part message in MIME format.
------=_NextPart_000_000C_01C92EE4.BBA03630
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I'm using VB.NET 2002 on Windows 2000 Pro and am having trouble =
serializing a SortedList.
This is my class:
<Serializable()> Public Class clsGoodFiles
Inherits SortedList
Public S...
|
4 |
12/7/2008 8:44:35 PM |
|
How to make an object to survive application restart?
My application in vb.net is using a collection of structures, implementing
basically a queue of jobs. What is the easiest way to make this collection
surviving application restart? Is there some embedded universal way to save
each member of the collection, for example to an XML file, and then restore
them upon restart? I understand that I can code the export of every
particular object, b...
|
6 |
12/5/2008 12:41:56 PM |
|
does XmlElement.FirstChild return the first child element ?
Hi,
I notice that XmlElement.First child is of type XmlNode, not
XmlElement
however, given this xml
<foo id="17">
<bar>
</foo>
The "first child" of foo seems to return the element <bar>. shouldn't
it be the attribute id="17"
Andy...
|
2 |
12/4/2008 11:53:35 AM |
|
XElement Serialization
Recently I developed a .NET solution that supports a plug-in architecture.
Anyway, I load my plug-ins in a separate AppDomain like Microsoft suggest.
Anyway, I wanted to exchange data between two AppDomains using
AppDomain.GetData/SetData. This worked fine, except for XElement objects.
I'm assuming that XElement objects aren't marked with the [Serializable]
attribute (I didn't look wit...
|
1 |
12/4/2008 1:54:23 AM |
|
xslt 2.0 support in .net 3.5
I just started working with .net 3.5 using Visual C# 2008 Express
Edition. I tried to run XslCompiledTransform.Transform with a style
sheet that uses the xsl:sequence instruction, like so:
<xsl:sequence select="$Vvar21_price_double"/>
The Transform method throws an exception with the message 'Select is
not a recognized extension element'
Am I correct in assuming that XslCompiledTr...
|
2 |
12/2/2008 1:22:21 AM |
|
Creating XML Master/detail in one line per record.
I'm using VS (in ASP.NET VB) for a few months and I'm creating my first site.
But I'm not that familiar with XML. Only the basic stuff. What I'm want to
create is a XML file that will be used as a gridview source. The file should
contain master/detail data with the following requirement :
The master field values (M) and the corresponding detail field values (D) of
a DB record, should be...
|
3 |
11/29/2008 5:47:28 PM |
|
best return from WCF service to other .NET consumers?
We have a web application today in Framework 3.5. The application consists of
a Data Access Layer, Business Logic Layer and a Front Layer of ASP.NET
webpages. In the DAL, a number of typed datasets are defined, and it is these
typed datasets that are used as data transfer objects throughout the
application.
Now we want to expose functionality, from the application, to other .NET
syste...
|
1 |
11/26/2008 1:25:01 PM |
|
Returned data from WebService
I apoligize if this is the wrong forum. We have an InfoPath form that we
submit the data to a database as an XML string. We have the need to read this
string back to the orginal form. I can get the XML back with no problem using
the WebServiceConnection object within InfoPath. This object returns a
XPathNavigator object, and I can view the data using the OuterXML property.
When I try to ...
|
7 |
11/25/2008 6:41:03 PM |
|
generating an XmlDocument from an XmlWriter
hi,
I would like to make an XmlWriter write directly into an XmlDocument rather
than writing it to a stream and then having to load it into a document.
in the documentation for XmlWriter it rather tantalizingly says:
"... For example, if you are using the XmlWriter to populate an XmlDocument
...."
(just google for that phrase to see it in context) which implies that it it
possibl...
|
4 |
11/24/2008 7:04:43 PM |
|
XML Validation in C # 2.0
Hi,
I am trying to validate an invalid-XML against an XSD. I am using an
XmlReaderSettings to set the ValidationEventHandler, ValidationType
and adding the Schema to the SchemaSet.
The XML has quite a few validation errors in it. But the
ValidationEventHandler is throwing only the first validation error.
I have used XmlValidatingReader instead and it was listing all the
validation errors. S...
|
2 |
11/24/2008 12:28:11 PM |
|
XML serialization
Hello there,
I need to design classes, that can be serialized to XML like this:
<?xml version="1.0"?>
<Groups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Group>
<Item name="Group 1 item 1" />
<Item name="Group 1 item 2" />
</Group>
<Group>
<Item name="Group 2 item 1...
|
3 |
11/14/2008 3:28:20 AM |