Explore how to read and manipulate XML documents with Delphi using the TXMLDocument component. See how to extract the most current 'In The Spotlight' blog entries (RSS feed) from the About Delphi Programming content environment, as an example. Create XML files from Paradox (or any DB) tables using Delphi. DISCLAIMER: This video is boring to the average YouTube viewer. Can you read German GABE XML (X83) files? GABE XML files are the file format with the German client create the request.
![]() ![]()
Open XML File, string.Replace a string, then Save XML file... help!
Dim XMLFiles As String() = System.IO.Directory.GetFiles('C:UsersApp_Dataposts') For Each strFile As String In XMLFiles Try Dim xmlDoc As New System.Xml.XmlDocument xmlDoc.Load(strFile) Dim xmlNodeList As System.Xml.XmlNodeList = xmlDoc.SelectNodes( Dim es As String = xmlDoc.InnerText.Replace('<font face='trebuchet ms,geneva' size='2'>', ') es = es.Replace('<font face='... Xml Convert string to xml Hi I have a save the file xml to database as TEXT, I would have to read the field of the db, and reading the tag of the xml Can Help me Thank's... XML Transform to 1 XML file to another XML File Hello All I am a novice programmer. I want to transform 1 xml file to another xml file. I am looking for a example code where user will select source xml file and create another xml file in different file with different fields with some default validation of parsing date and default values. Can anyone help me or let me know any available source code in C#/ASP.Net? Ms Disha I am assuming you know xslt, if not, you would have to go look at that. But if you do, then this document will help you out http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=... Converting XML string into XML Document I am calling a web service which returns an XML string containing numerous fields which I need to obtain the values against.I have done the following so far, in an effort to retrieve the values within the XML, but it appears that despite loading this XML string into an XMLDocument, the entire string is assigned as the InnerHTML of the XMLDocument, but there are no nodes/entities etc.// Extract return fields from the Web Service (result is the xml string response from the webservice).StringReader sr = new StringReader(result);XmlDocument xmlDoc = new XmlDocument();xmlDoc.Load(sr);// These are... Save XML string to XML file I load a string of xml from my database into a variable, xmlString.I simply want to take this xml string and save it to disk as an .xml file.Can anyone show me an easy way to do this? I've tried Xml.Load (which takes a file), Xmlserialize... with no luck, and I know there has to be an easy way to take: Dim xmlString as String = '<xml><item>1</item><item>2</item><item>3</item></xml>' And save it to disk as File.xmlThanks for any help,-lance Hi, Try to use Dataset's WriteXML method for this purpose. Thanks and best regards,Faraz Sh... Convert Xml document to Xml file i have a function which returns outerxml and i have to bind it to a treeview which can be done with an xml file so how toconvert this outer xml document to xml file try this code StreamWriter w = new StreamWriter('MyFileName.xml', false); w.Write(XmlDocument1.OuterXml); w.Close();Wessam Zeidan... How to convert XML file into XML Schema How to convert XML file into XML SchemaAzharPirana Dargah I am not sure it makes sense to 'convert' an XML file into an XML schema. What makes sense and what you can do is 'infer' a schema from an XML instance document. Visual Studio can do that for you for example, as can other XML editors. If you want to do it programmatically in the .NET framework then you can do it since .NET 2.0 with the class http://msdn.microsoft.com/en-us/library/system.xml.schema.xmlschemainference.aspxMartin Honnen --- MVP XMLMy blog hi Azhar, Open a xml file uasing Visual Studio. Now yo... problem in converting an xml string back to xml Hi,When I try to convert an xml string back to XmlDocument I am getting an XmlException saying “The root element is missing”. This exception occurs when the xml is not well formed or if the xml is blank. But here the xml string starts like below:'<?xml version='1.0' It is well formed but I am wondering if this exception is caused by the back slashes. These back slashes were added automatically when I converted the xml to string.I am using the following code to convert the xml String back to XML://XMLRequest is a string which contains the xml XMLRequest = XM... pass the xml as string instead of .xml file i know that if we have a xml file abc.xml using xmldocument we can pass it as a string like..... Dim filepathname As String = Server.MapPath('abc.xml') Dim xmlDoc As New XmlDocument xmlDoc.Load(filepathname) But i am creating xml using textwriter class how can i pass it or save it as a string instead of a '.xml' file I did xmlOut = New XmlTextWriter(filepathname, System.Text.Encoding.UTF8) but instead of filepathname i want to pass xml after it is created as a string without storing it in an .xml file anywhere. how do i do this? I tried thi... convert XML file to string ? I need to convert an XML file to string to insert it into a dataset using to following code Public Function CreateDatasetFromXMlString(ByVal XMLString As String) As DataSet Dim ds As New DataSet ds.ReadXml(New StringReader(XMLString), XmlReadMode.InferSchema) Return ds End Function can anyone help with this please go easy i'm new! cheers Mark Well since I wrote the code you have here I will tell you how I used it. Dim xmldoc As New XmlDocument Dim DSRecipents As DataSet xmldoc.Load(Server.MapPath('recipien... How to convert String into a XML file? Halo, I have a method that return an XML string back, this string is already in XML, what method can i use to save the String into an XML file? Thanx... : ) You can use StreamWriter class to write a string to a file.Oleg [XML MVP, MCPD]XmlLab.Net | http://blog.tkachenko.com... Trouble inserting XML node halfway through XML file Hi guys, I am trying to create another entry in my XML file, but for some reason when I write to the XML, it sticks the code in the middle of my previous Node, thus messing up my XML file. The code I am using looks like this: <code> siteMap.Load(Server.MapPath(ConfigurationSettings.AppSettings('siteMap'))) &... How to convert XML file into XML Schema PLEASE HELP!!!! Hi, How can I convert an XML file to XML schema PLEASE HELP!!!! byeHighOnCodingWanna get high! What do you mean by convert to XML Schema, do you mean infer the XML Schema from an specific XML document? If you have VS.NET it can infer the schema from an XML document. Hi, i have a xml file and I want to write schema for that file. I hope u this helps and thanks for the Quick Reply. byeHighOnCodingWanna get high! You can use one tool in gotdotnet to do that: http://apps.gotdotnet.com/xmltools/xsdinference/Default.aspx There is also a tool for infering x... Save/Convert an XML file to string Hello, I am using PowerBuilder 9.0. I have an XML file created in memory (it is not saved on disk space). I need to save/convert that XML file into a string but I don't know how to do that. One possible solution is that I save the XML file onto disk space and then use fileOpen and fileRead to read the file into a string and then delete the file. But that solution is not an option since I can not store the file on diskspace at all due to security issues. Is there any way to do this and save/create the XML file into a string while it is still in memory? I am open to ideas and any h... ![]() ![]() Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |