| Xml to database (3 replies) |
| ASPFriends.com 'aspngxml' list |
| Moved from [aspngfreeforall] to [aspngxml] by Charles M. Carroll charlesmarkcarroll@yahoo.com I have an XML file in my local disk . i have to read this file and take all values from the Xml file and insert it into the database . how to do this Thanks in advance vin gan Chat with friends online, try MSN Messenger: http://messenger.msn.com |
|
| Working with XHTML (5 replies) |
| ASPFriends.com 'aspngxml' list |
| Moved from [aspngfreeforall] to [aspngxml] by Dana Coffey denigma@bellsouth.net Are any of you here working with XHTML? If so, where are you putting your XML and DOCTYPE declarations, at the very top of the page before the %@ Register..... % And %@ Page.....% Tags or after them? Does it really matter? Cheers, Julian Voelcker The Virtual World (UK) Limited Cirencester, United Kingdom |
|
| Dataset to XML attribute based (7 replies) |
| ASPFriends.com 'aspngxml' list |
| Moved from [aspngdata] to [aspngxml] by devin devinr@drone interactive.com Is there a simple way to convert a dataset to a attribute based xml document? |
|
| getting the xml server control value back from client (2 replies) |
| ASPFriends.com 'aspngxml' list |
| I've got an xml server control that I'm using as a data island. It sends some info to the client and based on some actions the client takes that island is updated. When I get back to the server I'm trying to reference the updated xml island. Control activeMonitorControl FindControl("Xml1"); if(activeMonitorControl ! null) { string xmlStr ((System.Web.UI.WebControls.Xml)activeMonitorControl).Docume... |
|
| Bizarre TreeView Control Error (5 replies) |
| ASPFriends.com 'aspngxml' list |
| I'm getting this error when trying to use the MS IE Treeview controls. Has anyone seen it before? I can post the code if needed but Quote doesn't appear anywhere near my xml or xsl that powers the treeview control. I'm using a page thats got the asp:xml control on it to transform the xml to the treeview schema. Server Error in '/' Application. This is an unexpected token. Expected 'QUOTE'. Line 2,... |
|
| Question on SelectNodes and ChildNodes (5 replies) |
| ASPFriends.com 'aspngxml' list |
| Hi, this question sounds too basic since I am still learning on this thing. The examples found in the help doc doesn't help much, so here it is... I have the following sample XmlDocument: resultxml node attribute ... subnode1 ... /subnode1 subnode2 ... /subnode2 /node node attribute ... subnode1 ... /subnode1 subnode2 ... /subnode2 /node /resultxml I used the following code to get the attribute of... |
|
| Writing to xml file (2 replies) |
| ASPFriends.com 'aspngxml' list |
| Can some one point me to an article that shows how to write to an existing xml file with ASP.net using C# The ideal "how to" will: Check for existance of xml file Create xml file if it does not exist. Write to the end of a xml file without overwritting existing xml. Thanks, Stewart Haddock |
|
| XmlSchema (2 replies) |
| ASPFriends.com 'aspngxml' list |
| I am messing around with xml validation and using the examples on the msdn site. All the examples have you loop through the xml doc and look at each node. It seems that a validation object could be created and just "look" at the xml and xsd files and return a true or false depending on validity. Does any one have any comments or suggestions on this? Any articles on using schemas with ASP.NET and C... |
|
| XML Application Design Help (6 replies) |
| ASPFriends.com 'aspngxml' list |
| DQogIEkndmUgYmVlbiBsb29raW5nIGZvciBhbiBvcHBvcnR1bml0eSB0byBkbyBzb21lIFhNTC1i YXNlZCBhcHBsaWNhdGlvbiBkZXZlbG9wbWVudCwgYW5kIGhhdmUgZm91bmQgYSBwcm9qZWN0IHRo YXQgbG9va3MgbGlrZSBhIGdvb2QgZml0LiAgSSdsbCBkZXNjcmliZSB0aGUgcHJvYmxlbSBJJ20g dHJ5aW5nIHRvIHNvbHZlIGFuZCB0aGVuIEknZCBsaWtlIHRvIHNvbGljaXQgc29tZSBoZWxwIGlu IHRoZSBiZXN0IHdheSB0byBhcmNoaXRlY3QgdGhpcyBhcHBsaWNhdGlvbiBpbiB0aGUgQVNQLk5F VC9WUy5ORVQgdG9... |
|
| XML/XSL to string? (3 replies) |
| ASPFriends.com 'aspngxml' list |
| Moved from [aspfreeforall] to [aspngxml] by Dana Coffey denigma@bellsouth.net Could someone show me how to change the following C# code so that the parsed XML/XSL is output to a STRING instead of "Response.Output"? Instead of: xslDoc.Transform(doc,null,Response.Output); I want something like: string s xslDoc.Transform(doc,null); where s would be the output from the parsed XML/XSL files. Thanks, Ed... |
|
| XML Attributes (4 replies) |
| ASPFriends.com 'aspngxml' list |
| Hi, I am trying to get the innertext value of an attribute named Value where the langagbe attribute is equal to the session language variable. I know my code is wrong as this is the first time i have played with xml. it is filling the labels fine but is always filling it with the japanese language text. How can i get the the correct value out according to the language needed? this is a snippet of ... |
|
| XML Class Serialization (2 replies) |
| ASPFriends.com 'aspngxml' list |
| DQogIFRoYW5rcyB0byB0aGUgaGVscGZ1bCByZXNwb25zZXMgSSByZWNlaXZlZCBsYXN0IHdlZWss IEknbSBjb250aW51aW5nIHRvIGV4cGxvcmUgYW5kIHBsYXkgd2l0aCB0aGUgWE1MIHNlcmlhbGl6 YXRpb24gY2xhc3NlcyBhbmQgdG9vbHMuDQoNCiAgSSB0aGluayBJIHByZWZlciB0byB1c2UgdGhl IHNpbXBsZSBYU0QtQ2xhc3MgbWFwcGluZyBhcHByb2FjaCwgc28gSSdsbCB1c2UgdGhvc2UgaW5z dGVhZCBvZiB0aGUgRGF0YVNldC1iYXNlZCBhcHByb2FjaC4gIEhvd2V2ZXIgSSdtIG5vdCBoYXBw eSB3aXRoIHRoZSB... |
|
| how do you write out a file? (4 replies) |
| ASPFriends.com 'aspngxml' list |
| Hi, I am trying to write out XML data to a file and get an error. Specifically, I have a dataset and I want to write the dataset to a file. Then I want to email the file as an attachment. But when I create the dataset using WriteXml, I get this error: System.UnauthorizedAccessException: Access to the path "C:\WINDOWS\system32\test1.xml" is denied. The ASP.NET process is not authorized to access th... |
|
| add attribute (5 replies) |
| ASPFriends.com 'aspngxml' list |
| 101 time! How do I add an attribute to an xml node? This is my code, but it breaks on SetAttribute. //add the date attribute XmlAttribute MessageTimeAtt myXmlDocument.CreateAttribute("MessageTime"); MessageTimeAtt.Value MessageTime; MessageNode.SetAttribute(MessageTimeAtt); Thanks, Stewart Haddock |
|
| Reading the value of a specific tag (5 replies) |
| ASPFriends.com 'aspngxml' list |
| Hi, I'm sure this must be very simple but I can't get my head around it :( How can I directly read the value of say the Email tag in the following XML document? (assuming the file path is string ConfigFile Server.MapPath("/XML/config.xml"); ?xml version "1.0" encoding "utf 8" ? Config Email email@email.com /Email Subject Subject /Subject Body This is the message body /Body Footer /Footer /Config |
|
| Saving XmlDocument as string (3 replies) |
| ASPFriends.com 'aspngxml' list |
| Hi All I have an XmlDocument say xDoc. And now I want all the xDoc returned as a string. Here is what I am tryin to do. private string getXmlDocAsString() { XmlDocument xDoc new XmlDocument(); xDoc.Load("Test.xml"); // Do some processing and editing // Here is where I want the xDoc to be returned as string. return ""; } I tried to use xDoc.Save() with no success. Can someone help me with this. Gre... |
|
| Ordering a date with xsl (2 replies) |
| ASPFriends.com 'aspngxml' list |
| How do you order by a DateTime when transforming xml with xsl? So, if I have a node with an attribute like MessageDateTime "5/17/2002 2:42:54 PM" what will the xsl look like that will order this? This is my code that does not work... xsl:apply templates select "message" xsl:sort select "message[@MessageDateTime]" data type "number" order "descending" / /xsl:apply templates Thanks, Stewart Haddock |
|
| how to convert .xml file as .dll file (2 replies) |
| ASPFriends.com 'aspngxml' list |
| Moved from [aspngfreeforall] to [aspngxml] by Ian merk@pacificnet.net Hi, I want to convert .xml file as .dll is it possible.....if yes please tell me othere wise, is there any alternatives.... My idea is i don't want to expose my .XML file to outside just by opening in editor. It should be protected. Please tell me how to do... regards Sudharshan Everything you always wanted to know about cars an... |
|
| Drunk on quotes? (2 replies) |
| ASPFriends.com 'aspngxml' list |
| Hello, I am trying to select a node with the statement below, but I get errors when I try to compile. How is this done correctly? C# code ForumNodeList myXmlDocument.SelectNodes("Message[@ThreadID """ ReplyToThreadID """]"); Thanks, Stewart Haddock |
|
| Changing Anchor color with xsl (6 replies) |
| ASPFriends.com 'aspngxml' list |
| How do I change the color of text within anchor tags in a xsl stylesheet? Xsl code I want change the color of 'Reply' xsl:element name "a" xsl:attribute name "href" Post.aspx?replyto xsl:value of select "@ThreadID"/ /xsl:attribute xsl:text Reply /xsl:text /xsl:element Thanks, Stewart Haddock |
|
| Xml.XmlException: Error (3 replies) |
| ASPFriends.com 'aspngxml' list |
| Failed to read menu data file: Exception: System.Xml.XmlException: This is an unexpected token. Expected 'SEMICOLON'. Line 11, position 73. at I belive it see the & char as an unexpected token... this is the url that is failing : DesktopDefault.aspx?tabindex 3&tabid 4 this is the url works: DesktopDefault.aspx?tabindex 3 For 2002 ASP.NET Solutions & Articles goto: http://aspalliance.com/dotnetsolu... |
|
| Creating Xml Schema from a dataset (2 replies) |
| ASPFriends.com 'aspngxml' list |
| Hi, If I load an XML file (without a schema ) into a dataset can a general a schema and write it back out to the xml file ? If so, can I then use that schema to populate that data using the schema into a Sql Server tables. Regards, Paul |
|
| Handing a space within a XML tag (2 replies) |
| ASPFriends.com 'aspngxml' list |
| Looks like after creating an XML string (with MS DOM) instead of having a 1 byte character, I get two. Any ideas why this is? What I need is to be able to have an XML tag that looks like this: Mask /Mask Thanks, M. |
|