all groups > dotnet xml > december 2006
Filter by week: 1 2 3 4 5
Xml Print Preview
Posted by mahfuza via DotNetMonster.com at 12/26/2006 12:00:00 AM
Hi
I have an Xml file.I Load it in a Datagrid, My Xml file has child tables,
and I want to print this, so I want to see its print preview, but when I want
to do it, only it is shown the root table in print preview. What can I do to
see the child table in print preview?
--
Message posted via... more >>
Reading XML file from http
Posted by David Thielen at 12/22/2006 9:35:00 PM
Hi;
I am trying to test reading a html file over http. So in IIS I create a
virtual directory and then in my NTFS permissions I set that directory to
only allow read from Domain Users. (I also allow control by admin).
I then access it using:
XmlDocument xmlDoc = new XmlDocument();
XmlUrl... more >>
XSL needed
Posted by Boni Lopez at 12/21/2006 7:58:13 PM
Hi experts,
I need a style sheet to convert following INPUT xml into follwing OUTPUT
xml.
Thank you very much,
INPUT:
<dataroot >
<Node>
<Block>B1</Block>
<Group>GGG</Group>
<Subgroup>SSS</Subgroup>
</Node>
<Node>
<Block>B1</Block>
<Group>GGG</Group>
<Subgroup>SSA</Subgr... more >>
Subquery using X-Path (Nested X-Path statements)
Posted by sql_er at 12/21/2006 10:59:46 AM
Hi all,
I am trying to convert an SQL statement into an XPath (or a sequence of
XPath) statements. More specifically, I have the following:
SELECT a
FROM b
WHERE c IN (SELECT d FROM e)
I recently learned about XPath and know how to perform simple filtering
(i.e. SELECT). However, I do... more >>
rendering RSS XML as HTML?
Posted by matt NO[at]SPAM mailinator.com at 12/20/2006 5:46:52 PM
hello,
im doing my first experiment w/ RSS & ASP.NET. could use a bit of help.
i have a livejournal site blog here:
http://nexus9.livejournal.com/
and i have its RSS xml here:
http://nexus9.livejournal.com/data/rss
....i want to render this as HTML on my own personal site. ... more >>
ReadXml from resources
Posted by ray well at 12/20/2006 5:28:24 PM
i saved the state of a data set and table via
MyDs.WriteXmlSchema("MyDs.xsd")
MyDs.WriteXml("MyDs.xml")
i was able to read them back in and display the info in the database by
MyDs.ReadXmlSchema("MyDs.xsd")
MyDs.ReadXml("MyDs.xml")
i put the 2 files into my project reso... more >>
Upgrading XMLValidatingReader
Posted by JT at 12/19/2006 9:17:00 PM
Hi all,
As you know, the XMLValidatingReader is deprecated in .NET 2.0. I have the
following snippet from a .NET 1.1 implementation that I am struggling to
upgrade. I know I should use XMLReader.Create, but am struggling to get much
further. Any help would be appreciated. Thanks.
Publi... more >>
Problem with DataSet ReadXml
Posted by Angel \ at 12/19/2006 4:53:57 PM
Hi people!
I'm running a Visual Studio 2005, Professional, on Windows XP Professional.
I've found a little big problem, reading a DataSet. If I try:
ds.ReadXml("c:\data.xml")
it raises the exception ONLY in Web Sites:
{"The type initializer for 'System.Xml.Schema.DatatypeImplementati... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
XML Validation
Posted by mehdi at 12/19/2006 8:54:09 AM
Hi folks,
I got the following code to validate a custom XML against a given
schema:
XmlSchemaSet sc = new XmlSchemaSet();
sc.Add(schema);
sc.Compile();
XmlReaderSettings settings = new XmlReaderSettings();
settings.ValidationType = ValidationType.Schema;
settings.Schemas = sc;
settings.... more >>
Escaping linebreaks in XML within XSLT ??
Posted by peter at 12/19/2006 4:48:51 AM
I have a xslt that writes a txt file from xml. Xml file is generated by
a user input on a webpage and some nodes have linebreaks which corrupts
my output. is there a way to generally set that xslt should ignore
linebreaks or a way to use <xsl:value-of select="$VALUE"/> and clear
$VALUE of linebr... more >>
Validation not occuring
Posted by lists NO[at]SPAM givemefish.com at 12/15/2006 2:41:25 PM
Hi all,
I am trying to validate an XML file against an XSD schema file within a
..NET C++ program, but the validation doesn't seem to be occuring.
My code is listed below. The validation event handler is not called
even when the XML should valid properly against the schema.
Obviously I'm... more >>
Problem setting node-set in XsltArgumentList
Posted by Sam at 12/15/2006 2:30:03 PM
I am working with .Net 2.0. I found a 2002 posting with this sample
code of how to send a node-set into a XSLT transformation:
string xml = @"<foo><bar>The Test</bar></foo>";
string xsl =
@"<xsl:stylesheet xmlns:xsl=""http://www.w3.org/1999/XSL/Transform""
version=""1.0"">
<xsl:param n... more >>
DataSet.ReadXmlSchema and imports statement
Posted by Sambo at 12/14/2006 9:01:31 PM
Hi All
I've had a look around and noticed a couple of others having this
issue, but with no replies. Hopefully someone can help with this.
I have a schema (let's call it "Schema1.xsd") that I want to read into
an untyped DataSet using the ReadXmlSchema method. The problem is that
"Schema1.x... more >>
Find and Replace within an XML file
Posted by Namshub at 12/14/2006 12:00:00 AM
I was wondering if there is a simple method of replacing characters within
the xml document.
I'm looking at writing a Biztalk Pipeline that escapes illegal characters
before they are processed by a HL7 assembler.
I.E. replace all instances of & or & with \T\ .
I thought about conver... more >>
referencing an xslt variable
Posted by rls03 at 12/12/2006 1:51:38 PM
I have the following which creates a variable containing a relative
path where <xsl:value-of select="."/> returns a portion of the
filename:
<xsl:variable name="fileName">../../data/models/<xsl:value-of
select="."/>.xml</xsl:variable>
I want to use this variable as an argument of the docume... more >>
Recommendations on Development Resources
Posted by Candle at 12/12/2006 12:19:17 PM
I am new to XML development however I want to enhance my skill set. As
a result, I am looking for recommendation for resources to accomplish
this task in the following areas:
- Books / Web Sites / Classes / Any Other Educational Material
- Free applications to process XPaths, XSLT, and etc
- Pu... more >>
The normalize-space
Posted by kollatjorva NO[at]SPAM gmail.com at 12/12/2006 4:00:49 AM
Hi all
I'm trying to get a value from an xml node 'Publisher' use the value as
a name of an .css class. This works fine until I get a value from the
Publisher node with white space in it.
I've been trying to use normalize-space function on this but I can't
make this work
here is what I'm t... more >>
I can't query an XMLDocument with XPATH; every query returns 0 nodes
Posted by 0to60 at 12/11/2006 6:59:27 PM
Please help! I'm using the following code to get an XML doc:
string str =
"http://api.local.yahoo.com/MapsService/V1/geocode?appid=12345&city=addison";
System.Net.HttpWebRequest request =
(System.Net.HttpWebRequest)System.Net.WebRequest.Create(str);
... more >>
Bizzare Select single node problem
Posted by PT at 12/11/2006 12:16:43 PM
Hi,
I've a simple XML tree that is essentially.
<?xml version="1.0"?>
<Project>
<Version Version="1.001" />
<Platform Name="Platform1"/>
<Platform Name="Platform2" />
</Project>
Now I have the following code.
XmlNode destinationProjectNode = doc1.SelectSingleNode("//Project");
string... more >>
XmlTextWriter to XmlDocument in .net framework 2.0
Posted by James Berry at 12/10/2006 5:26:41 AM
Is there a way I can write to an XmlDocument using an XmlWriter style
interface efficiently in the framework 2.0?
In 1.1, you could write to a MemoryStream then load that into an
XmlDocument, but this was pretty inefficient. The XmlNodeWriter sample
helped here and I was expecting that to app... more >>
Why doesn't this work with XPath 1.0?
Posted by MikeL at 12/8/2006 5:02:38 PM
I'm using .Net 2.0. I realize that this means XPath 1.0 (which is
ridiculous).
So here's a document that I have that's not on disk but held in a variable
(I queried an Exchange appointment calendar):
<?xml version="1.0"?>
<a:multistatus xmlns:b="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c148... more >>
XSL Transform Help, Please
Posted by Candle at 12/8/2006 9:41:02 AM
I am having a problem with writing an XSL Transform. Please help.
Note: I know this a long post but I wanted to provide as must detail as
possible. Any help would be appreciated. (Just started writing my
first transform yesterday and no one at my company knows this stuff.)
Assume I have th... more >>
Getting an XMLWriter from an XslCompiledTransform.Transform call - Please help :-(
Posted by Simon Harvey at 12/8/2006 12:00:00 AM
Hi all,
I'm having a real problem with getting an XMLWriter as a result of an
xsl tranform I'm attempting.
My code is:
private void btnPerformTransform_Click(object sender, EventArgs e) {
// Load the style sheet.
XslCompiledTransform xslt = new XslCompiledTransform();
... more >>
XslCompiledTransform Load method getting "Root element is missing" XSL Compile error...???
Posted by tony at 12/7/2006 4:08:48 PM
XslCompiledTransform xslt = new XslCompiledTransform();
ASCIIEncoding encodeToByteArray = new ASCIIEncoding();
MemoryStream inputStream = new MemoryStream();
MemoryStream outputStream = new MemoryStream();
MemoryStream xslStream = n... more >>
Display XML data from a RS dataset
Posted by mviz at 12/7/2006 3:27:13 PM
I have a RS dataset that contains XML data, but when this data is
displayed on the browser it shows as a string. I need help to display
this data as a formatted XML document in browser. I have tried using
web services but I was not able to pass report parameters to the web
service.
Desperatel... more >>
Outputing raw xml string to screen
Posted by Patrick.O.Ige at 12/7/2006 12:00:00 AM
I would like to output raw xml string to the browser
e.g
<roteTarget au_lname="0.09" au_fname="0.045">
<MysteryShoppingTrgt>Where Does The Time Go</MysteryShoppingTrgt>
</roteTarget>
Any ideas..
Thanks
... more >>
XmlSerializer for single level serialization of objects ?
Posted by cwertman NO[at]SPAM gmail.com at 12/5/2006 7:07:47 PM
Ok the XmlSerializer is nice for my need.
BUT I what I need (maybe the XmlSerializer isnt what I need) is to be
able to take the following
objects
A Person who has a collection of Addresses
Person
(fname)
(lname)
Address
(Street)
(City)
(State)
(Zip)
And Seri... more >>
A good book about XML Schema
Posted by Fede at 12/5/2006 2:31:40 PM
Hi!
Please can someone suggest me a good book to understand XML Schema?
Thanks in advance.
Fede
... more >>
storing binary
Posted by phil at 12/5/2006 1:03:46 PM
Newbie question
I have an application and want to store my program in XML - most of the
classes can be stored as ASCII text except that I also have a few bitmaps
too.
Is there any way to store binary objects within the same XML file but keep
everything else human readable
Any help wil... more >>
Count Nodes?
Posted by JS at 12/4/2006 10:36:08 AM
Hi there,
How do I count the number of <Item> nodes for each <Message> in the
following xml document?
(Xml Document)
<Message>
<Order>
<Item>1</Item>
<Item>2</Item>
</Order>
</Message>
<Message>
<Order>
<Item>3</Item>
</Order>
</Message>
I have succeded to c... more >>
XSDObjectGen -> member names cannot be the same as their enclosing type
Posted by Veerle at 12/4/2006 2:33:03 AM
Hi,
I generate class from xsd files using XSDObjectGen. But the generated
code doesn't compile because there are properties with the same name as
the class name, which is not allowed in C# : "member names cannot be
the same as their enclosing type". I cannot alter the xsd files,
because they ... more >>
2GB Limit?
Posted by Andrew Robinson at 12/1/2006 3:51:59 PM
My understanding is that strings and xml documents are limited to 2GB. Not
that this is a good practice, but I have a client that wants to parse /
convert (in memory) a document that is larger than 2GB. I don't think it can
be done even with XP or Vista 64. Am I correct? I assume that I can read
... more >>
Help streaming XML instead of dataset
Posted by JJA at 12/1/2006 9:01:33 AM
I am confused about all the various methods of handling XML in ASP.Net
2.0. I want to be able to stream XML to some clientside Javascript code
(snippet below):
var urlRequest = "../GetLendersAsXML.aspx"
var request = GXmlHttp.create();
request.open("GET", urlRequest, true);
reque... more >>
How To Validate the XML file
Posted by S at 12/1/2006 4:54:26 AM
Hi,
I have the following xml file
<?xml version="1.0" encoding="UTF-8" ?>
<n1:Message xmlns:n1="nz:govt:moh:schemas:diabetes-cardio.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<MessageHeader>
<Site>pho1diab</Site>
<SendingApplication>MyPracticePMS 8.05a</Send... more >>
what NewsGroup tools do you use?
Posted by navyliu at 12/1/2006 12:00:00 AM
I use outlook express. But I find it's not facility?
what NewsGroup tools do you use?
... more >>
|