xml

Multiple CSS borders without wrapping?

Hi, I want to create a button with two solid borders around eachother, like this: .--------. |.------.| ||Button|| |'------'| '--------' Of course I can do it this way by wrapping the button into an evil, bandwidth-consuming <span>: <span class="outer-border"> <a class="button" href="http://www.example.com/"&gt;Button&lt;/a&gt; <...

asp.net: Bind XML from Webservice to a dropdownlist

Hi, how do i bind a xml (http://www.webservicex.net/country.asmx/GetCountries) to a dropdownlist? Currently I'm working with ASP.NET 2.0. Greetings... ...

C# XmlDocument.Validate Method calls the ValidationEventHandler numerus times, but line number and position are allways 0

I'm trying to validate an XmlDocument instance using an XmlSchema object (xsd schema). When I call the Validate method of the XmlDocument my ValidationEventHandler is called, but the Exception.lineNumber and Exception.linePosition are always 0 (zero). This is the code I'm using: //Validate XML against xsd schema XmlDocument doc = new Xm...

How to place if condition based on attribute value within for-each loop

I have a loop in xsl and depending upon the attribute value, i want to write some text. XML is as follows: <ROWS><ROW oid="28439"><EFL eid="8" fid="27672" count="2"> <MK id="3" val="0"/> <MK id="11" val="0578678 "/> </ROW></ROWS> XSL is as follows: <xsl:for-each select="EFL/MK"> <xsl:value-of select="@id" />: ...

Accessing XML content via PHP using SimpleXML

I am working with the XML file string below and I've tried a number of methods to try and get access to certain parts of the XML contents. Please see the code after the XML file below for my attempt: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org...

How can I add child elements in XML inside particular parent node?

I have serialized a following log class: [Serializable] [XmlRoot("Log")] public class Log { [XmlElement("ErrorLog")] public ErrorLog Error { get; set; } [XmlElement("MessageLog")] public MessageLog Message { get; set; } } public class ErrorLog { [XmlElement("ErrorMessage")] public string ErrorMessage { get; se...

xml technique with visual studio projects

I am programming in .NET (C#) using Visual Studio. I want to use am XML file to store some information in my program. No other programs will ever need to access this XML file and no one will need to access/modify it manually our without using the program. I am wondering what build options I should select for this file or if it really mak...

reading in XML with C#

I have the following XML file <?xml version="1.0" ?> <Persons> <Person> <Id>1</Id> <Name>temp</Name> <Qlid>1234</Qlid> <Manager>3</Manager> </Person> <Person> <Id>2</Id> <Name>someone</Name> <Qlid>5678</Qlid> <Manager>1</Manager> </Person> </Persons> I am trying to read it in using the following c# f...

How to read XML file using System.IO.Stream with LINQ

i will be passing the xml file like this: File1.PostedFile.InputStream //reading xml file..... public static void readXMLOutput(Stream stream) { System.Xml.Linq.XDocument xml = System.Xml.Linq.XDocument.Load(stream); var query = from p in xml.Element("ste").Element("Applicati...

xmldiff to sql (xml comparison)

EDIT: Decided tp use the patch utility and generated the SQL from there using Using the XML Diff and Patch Tool in Your Applications to compare database structures using XML, I have managed to create a file containing the differences in xml. I would like to take the final product and apply the sql "Alter" statements. Has anyone used t...

UI workbench to generates xml file

Hi, We have one custom ESB, which parses the config file to orchestrate different activities. I am thinking to create one UI workbench through which we can create or modify the existing config file to create or alter the activity flow. Basically, I am trying to simulate the what Visual Studio IDE does for us for Web forms or WPF but r...

xml and strongly-typed datasets with the dataset designer

I'm not sure if this is possible but here is what I want to do: I have created a strongly-typed dataset, StrTypDS using the dataset designer in Visual Studio. I have also created an blank xml file and added it to my project as a Resource so that it can be accessed through Properties.Resources.xmlData. The what I would like to do is read ...

Infopath form error from one computer (.xsn?SaveLocation...)

I have a SharePoint site with about 7 InfoPath form templates on it. Clients create new forms from that template and save it onto the site. They then create a workflow for other users to approve. I started noticing some of Forms were not loading correctly, and no one would approve them. I was able to narrow it down to a single issue in ...

Save checkboxlist values to xml using vb.net

Hello, I have some checkboxlist like this: <asp:CheckBoxList ID="G1" runat="server"> <asp:ListItem Value="Comunicações Unificadas" Text="Comunicações Unificadas - UCoIP"></asp:ListItem> <asp:ListItem Value="Gestão Documental" Text="Gestão Documental - iPortalDoc"></asp:ListItem> ...

Customize Rails Hash.from_xml with custom conversion

I want to convert my XML document to Hash in Ruby/Rails. Actually, the default conversion by Hash.from_xml in Rails works for me except in one case. I have a list of items contained in <item-list> element, these items can be of different types though. For instance, standard-item and special-item, each of which has different set of child...

Reading the XML values using LINQ

what is the best way of reading xml file using linq and the below code you will see that, I have three different loops and I feel like its not elegant or do I have options to retrofit the below code? public static void readXMLOutput(Stream stream) { XDocument xml = new XDocument(); xml = LoadFromStream(str...

Search and retrieve xml in dataset?

I am trying to find some working examples to learn the wonders on Dataset with XML. Im using this example of the xml data. I want to search through all the CD nodes for the TITLE value. DataSet dsXml = new DataSet(); dsXml.ReadXml(msXml); ...

python handle endless XML

I am working on a application, and my job just is to develop a sample Python interface for the application. The application can provide XML-based document, I can get the document via HTTP Get method, but the problem is the XML-based document is endless which means there will be no end element. I know that the document should be handled ...

Comparing XML documents for changes in PHP

Currently I'm using PHP to load multiple XML files from around the web (non-local) using simplexml_load_file(). This, as you can imagine, is quite a clunky process and is slowing load time significantly (7 seconds to load 7 files), and there could possibly be more files to load. These files don't change often, but changes should be displ...

Best way to parse this XML with jQuery

<?xml version="1.0" encoding="UTF-8" ?> <BMC_Impact_Manager version="1.0"> <IMPACT_EVENT> <EVENT> <date_reception>1279568162</date_reception> </EVENT> <EVENT> <date_reception>1279568162</date_reception> </EVENT> <EVENT> <date_reception>1279568102</date_reception> </EVENT> <EVENT> <date_reception>12795...