all groups > dotnet xml > february 2005 > threads for february 8 - 14, 2005
Filter by week: 1 2 3 4
XPath
Posted by Chris Fink at 2/14/2005 12:15:06 PM
What is a valid XPath Statement to retrieve the data found within the CDATA
tag below?
Using the XPath statement "/oid" returns ""
<oid><![CDATA[66257512]]></oid>
... more >>
XSDObjectGenerator issues
Posted by JTrigger at 2/14/2005 10:59:39 AM
I was trying to use the XSDObjectGenerator that is downloadable from the MS
website, and I am having issues. When I generate the objects
from the xsd file it places everything in 1 CS file. When I try to do a
build
on the file I get errors because it duplicates a bunch of classes. Am I
doin... more >>
XSL document() function problem
Posted by news.microsoft.com at 2/14/2005 10:54:37 AM
I am writing an XSL file to load a node set with XSL document() function
with the syntax as follows:
<xsl:variable name="var1" select="document('..\res\xmlfile.xml')/Accounts"/>
Unfortunately it's doing nothing.
Later I move xmlfile.xml to the same directory as the xsl file, as follows:
<xsl:va... more >>
A newbie's cry for help editing XML document
Posted by GeorgeAtkins at 2/14/2005 5:59:02 AM
HELP!
Using VB.NET, VS2003, XML. I apologize for the length of this request.
Though I've written before and received advise pointing to several articles
(which I've read and re-read), frankly, I'm still confused and need help!
My request might be a little different than what XML procedure... more >>
XmlSerialization to XmlNode
Posted by dmessenger NO[at]SPAM verdantsys.com at 2/13/2005 2:34:49 PM
I have a schema that I load into classes that mirror the schema using
the XmlSerialization. The schema contains an xsd:Any that I load into
'Extra' as follows:
[XmlElement(ElementName="Extra")] public XmlNode Extra { get { return
extra;} set { extra = value;}}
However, if I have:
<Someth... more >>
xmltextreader filter results based on attribute value
Posted by soupaman at 2/12/2005 1:11:36 PM
Im trying to output some filtered xml using the xmlTextReader I know
the code and commenting needs cleaned up and eventually plan to add the
values to a dataset. currently what this is doing is matching the
filters, runs into the response.write and outputs nothing. I've used
the dbgclr to verify... more >>
Getting XmlTextReader to skip DOCTYPE in Compact Framework?
Posted by ecomputerdelicacy NO[at]SPAM yahoozier.com at 2/12/2005 8:59:02 AM
Compact Framework SP3 (and I think also SP2 and SP1) XmlTextReader does not
handle !DOCTYPE and (maybe?) rdf elements. How can I get the XmlTextReader to
read these without issuing a NotSupportedException? Or at least to get past
these elements (and nested elements) with an Skip()? I've tried ... more >>
how do you ignore inherited members with XMLSerialization?
Posted by rob.bowley NO[at]SPAM gmail.com at 2/12/2005 7:21:47 AM
I have a class which inherits from a generated abstract base class.
I simply want to hide some fields which are inherited from the base
class when it is serialised.
I have tried:
public class Details : GeneratedDetails
{
[XmlIgnore]
public new string Id
{
get{return base.lI... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
XMLNamespaceManager problem
Posted by Richard L Rosenheim at 2/11/2005 10:01:18 PM
I'm trying to query a XML file that was created via ADO.NET. My query
wasn't returning anything, and I tracked the problem to an issue with the
namespace that ADO.NET specified. When I remove the namespace from the XML
data, the query worked.
Okay, so I added code to create a XMLNamespaceMan... more >>
XSD Enumerations
Posted by Glenn at 2/11/2005 3:11:56 PM
I've been trying to generate enumerations with specific integer values using
an XSD and xsd.exe.
e.g
public enum AccessSecurity
{
Normal = 1,
Restricted = 100001
}
The values held in the enumeration map to fixed values in one of corporate
systems we're integrating and it would... more >>
Schema to validate a Value Element of Type 'DateTime'
Posted by Paul Cheevers at 2/11/2005 2:09:48 PM
Hi,
I've been trying to write some schema to validate the Value element of an Eq
element but to no avail. If the Value Element is off type DateTime then the
node should be able to contain text (the actual date string) or the <Today
/> element.
I can write schema to validate either one off t... more >>
Deserialization of boolean values
Posted by Mike R at 2/11/2005 1:23:58 PM
I have a serializable class containing several bool fields. An XML string
sent to me by another application contains "T" for true and "F" for false.
XMLSerializer uses internally XMLConvert.ToBoolean(). "T" and "F" are not
valid strings for boolean values.
Only "1", "0", "true" and "false" are v... more >>
XmlTextReader and xml fragment
Posted by Yuriy at 2/11/2005 10:07:24 AM
Hi,
any ideas how to read XML fragment from TextReader? XmlTextReader constructor
accepts only Stream or string as source Do I miss something?
thanks
Yuriy
... more >>
Why are my element prefixes disappearing?
Posted by Harry Keck at 2/11/2005 8:25:02 AM
I am trying to create an xsl stylesheet on the fly as an xml document. I
create elements of type "xsl:value-of" and insert them into my document, but
when I output the xml representation of the document, the "xsl" prefix is not
there, only the "value-of" is present, so my transform does not w... more >>
XML Data Retrieval
Posted by Digga at 2/11/2005 5:31:05 AM
Hi
I'm not sure if I'm asking this question in the right group, so if anyone
could give me pointer to the solution I'd really appreciate it.
Situation:
I'm building a ASP based calendar type of system. I've run into a problem
that I can't reolve as I know nothing about XML, not entirely ... more >>
adding row to exiting xml file problem.
Posted by Todd at 2/11/2005 5:09:03 AM
I have the following code that inserts a new element and its attributes into
an xml file. The problem is the syntax of the inserted row. here is my code:
'Create an XmlDataDocument.
Dim doc As XmlDataDocument = New XmlDataDocument
'Load the schema.
doc.DataSet... more >>
xsd.exe and HL7 Schemas
Posted by perlesnews NO[at]SPAM gmail.com at 2/11/2005 4:35:40 AM
Hello everybody,
I am trying to create C# classes using xsd.exe on HL7 provided schemas
for v2.3.1 (http://www.hl7.org/Special/committees/xml/drafts/v231-200307.zip)
xsd.exe /classes datatypes.xsd
reports "The derived type and the base type must have the same content
type"
xsd.exe /class... more >>
XPath Vs XMLString
Posted by Selvakumar B at 2/10/2005 8:25:01 PM
I want to extract information from the xml string passed as parameter using
xpath.When i am trying to do
this i am getting the Error.
... more >>
mshtml does not generate valid XHTML?
Posted by Anthony LaMark at 2/10/2005 10:41:33 AM
Hi All,
I am generating a (X)HTML page in an IE webbrowser control (housed by a .Net
WinForm application) from a XML file using XSLT (using
Msxml2.DOMDocument.4.0). When the user clicks a button, control is returned
back to the WinForm application where I use mshtml to get a portion of the
w... more >>
display XmlElement.OuterXml in a edit control
Posted by ryang at 2/10/2005 10:33:07 AM
Hi,
I am trying to randomly select a element in a DOM tree, use the OuterXml
property for XmlElement to display the XML content of the element and its
children. However, XmlElement.OuterXml property returns the XML all in one
line. Does anyone know a good class/functions that will take th... more >>
XML Flexibility
Posted by Chris Fink at 2/10/2005 9:51:22 AM
is it possible to create a flexible dtd or xsd that allows new nodes to be
added to the xml document that still conforms to the dtd or xsd?
... more >>
Is it possible to parameterize entities?
Posted by Neil at 2/10/2005 8:21:07 AM
I want to be able to provide entity data to my XmlDocument from the runtime
environment.
I have an XML based report which I load into an XmlDocument object and feed
to a PDF generator. Within the report I want to define a number of entity
references (name, age, geneder etc.). When I load ... more >>
SignedXML
Posted by revir NO[at]SPAM tlen.pl at 2/10/2005 7:11:16 AM
Hello,
I'm trying to create signed XML document with SignedXml class. As a
SigningKey I'd like to use key pair obtained from user certificate
stored in current user certificate store. I'm using WSE 2 SP 2 to get
certificate, but when I'm invoking ComputeSignature() method of
SignedXML instance ... more >>
Problem saving first entry into a variable or parameter
Posted by Richard L Rosenheim at 2/9/2005 6:57:23 PM
I'm trying to create a style sheet to generate HTML output, based upon some
XML data.
I'm grouping some data, and I'm trying to get the very first entry either
just passed as a parameter, or placed into a variable (which I can then
pass). I would like to differentiate some of the formatting f... more >>
Implementation of XPointer range-to?
Posted by Pascal Schmitt at 2/9/2005 6:42:20 PM
Hello!
Is there an Implementation of XPointer for .NET which supports range-to?
(Or if not: how difficult is it to build it yourself?)
--
Pascal Schmitt... more >>
XSLT validation
Posted by KL at 2/9/2005 2:27:04 PM
Reposting since this forum might be more appropriate for my question.
I have written a simple piece of code in C# that takes a xml file as input,
applies a xsl transform and outputs a xml file.
I want to validate my output xml file against the xsl file to verify that
the output is as expec... more >>
XSLT "choose" does not overwrite the innerText of the node.
Posted by chris yoker via DotNetMonster.com at 2/9/2005 9:59:24 AM
hiya,
I'm still stuck at this one ;-(
I want to overwrite the "numeric" value of my node with a lookup value.
<xslt>
<xsl:for-each select="PRODUCT-TYPE">
<xsl:choose>
<xsl:when test=".='6'">Bike</xsl:when>
<xsl:when test=".='7'">Car</xsl:when>
<xsl:when test=".='1'">Van... more >>
user control with transparent back ground
Posted by jojo at 2/9/2005 7:29:04 AM
I' d like to develop an active x UserControl, using VB6, with transparent
background.
The user control will contains an image control. When load GIF image with
transparent parts I want that parts to be tranparent for the entire
UserControl.
I've set the UserControl's backstyle 0-transparen... more >>
XSD Validation Errors of an XML File
Posted by Stryker227 NO[at]SPAM yahoo-dot-com.no-spam.invalid at 2/8/2005 10:58:07 PM
Problem: I've designed a XSD of which I wish to validate a valid XML
file. However, I cannot seem to get the .xsd to align properly with
the .xml file. Here are my source files:
album.xsd:
<?xml version="1.0" encoding="iso-8859-1"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:ma... more >>
loading XML to SQL SERVER error
Posted by Patrick Olurotimi Ige at 2/8/2005 7:42:04 PM
I'm trying to load XML to SQL SERVER
But after executing the *.*vbs code below i get the error:-
ActiveX can't create object :- SQLXMLBUlkLoad.
Why?
Am i misssing something!
** And what are the best ways to do this..can anybody forward me samples
in .NET!!
Set objBL = CreateObject("SQ... more >>
XSLT "choose" incorrectly assigning the "Test"
Posted by chris yoker via DotNetMonster.com at 2/8/2005 12:51:30 PM
hiya,
i have an xml doc, and I'd like to assign lookup values.
Eg, if the "PRODUCT-TYPE" is 6, then I insert "bike" into the innerText.
<code>
<rows>
<row>
<PRODUCT-TYPE>6</PRODUCT-TYPE>
<PRODUCT-DATE>01/01/2003</PRODUCT-DATE>
</row>
<row>
<PRODUCT-TYPE>7</PRODUCT-TYPE>
<PRODUCT-DATE>0... more >>
Large XML file opinions
Posted by Marc Thompson at 2/8/2005 10:24:32 AM
Hi,
I have several large XML files (500-700 MB) that get updated once a day. I
have an app that will need to Query (read only operations is all I'll ever
need) these files. Obviously, querying a file this large will be somewhat
of a challenge because it can't be loaded into memory all at ... more >>
|