xml

Generating XML dynamically from the data entered on UI.

Hi All, I have a xml file which is currently made manually and I have to make a functionality(UI) where user can enter the data and I have to store the data and generate the xml file dynamically in .NET. Problem is the format of the xml file. I am not able to decide how I am going to store that data and then dynamically generate xml fr...

xml element not indented properly

i have created a xml file using c# but the main problem is that it is not indented i have used xmldocument.preserverwhitespace=true; ...

structuremap xml configuration override based on machine name

Hi I have the following XML configuration which I would like to set a connectio string based on the machine name of the server i place the code on, but with SM 2.6.1, it doesnt ever seem to apply the LiveSettings profile, can someone tell me what I am doing wrong? <?xml version="1.0" encoding="utf-8" ?> <StructureMap MementoStyle="Attr...

XQuery extract between two tags

I am currently working on extracting data from html. I would like to extract the text between two tags. <p class="xfHeading"><b>XYZ:</b></p> <p>asdfghjk</p> <p>sdsdsd</p> <p>asdvcvcfghjk</p> <p class="xfHeading"><b>ABC:</b></p> <P>fvgbhnjm</P> <p cl...

Icon of android application is not getting displayed

I made an icon and saved it in res/drawable directory as icon.png and edited the line <application android:label="@string/app_name"> in AndroidManifest.xml to <application android:icon="@drawable/icon" android:label="@string/app_name">. But on restarting the emulator, the icon doesn't get displayed. There are no other icon.png files in ...

Problem passing Variables - Objective-C

Hello, I'm trying to create an XML string and pass it to another method where I use the HTTP POST to send it to a PHP script. See the log file below, I can create the XML string and display it in the log file, but I cannot pass it to the postXMLFeed method. What am I doing wrong ? -(IBAction)syncUp { [self createXMLFeed]; // [self...

Android Extending View and creating from XML Null pointer exception

Hi all, I've created a custom view by extending View, it draws fine but When i try and refer to the object in the xml so I can say add a touch listener if reports a null pointer exception. My xml file is extremely simple <com.projector.interaction.layout.MapMouseView2 xmlns:android="http://schemas.android.com/apk/res/android" an...

How to set the prefix of a document element in Delphi

Using Delphi 2009, I'm trying to get a declared namespace prefix to apply to the document element in an IXMLDocument that I'm creating. Once the document element is created I can declare a namespace with a prefix, but it does not get applied to the document element and I can't seem to change the prefix of the document element. If I use d...

XMLEventWriter from scratch: how do I emit xmlns attribute?

I am trying to write an XML document from scratch using the XMLEventWriter from the StAX API. I cannot figure out how to get the default namespace attribute to be emitted. For example, the default namespace URI string is "http://www.liquibase.org/xml/ns/dbchangelog/1.9". I want that to be present in my XML root element as xmlns="http:...

Better control of for-each in xsl/xpath possible?

Hey Friends I've got another xsl/xpath problem. Sure a beginners problem, but I'm thinking still too "imperative". <!-- XML --> <Module> <WideTeaserElement> <Headline>Bla bla 1</Headline> </WideTeaserElement> <WideTeaserElement> <Headline>Bla bla 2</Headline> </WideTeaserElement> </Module> <!-- XSL --> <!-- ...

How to query XML elements from a local XML file in Internet Explorer using jQuery?

I am building a single HTML page for use in a touch-screen kiosk. I have an external XML file named data.xml which resides in the same directory as my HTML page. I was able to use jQuery to load the external XML file, parse it and build some HTML dynamically on page load without any problems in Firefox and Chrome. But then I tried it in ...

ASP.NET ValidateRequest & XML in Standard HTML Forms

I have a very basic ASP.NET web site. It has a single page (TestPage.aspx) that I want to be able to launch using a POST request with some XML input. The basic HTML page that launches the request looks like this: <html> <head> </head> <body> <form action="http://webserver/TestPage.aspx" name="Launch" method="post"> <input ty...

How to make a 835 Claim Payment responce to a 837?

I was asked how you would parser a x12 837 (medical claims). It was the first time I have see a file format like it. A little time on Google and I learned that the file contains 3 types of delimiters at 103,104,105 and that the first element in the file is fixed length. Next I learned the elements I parsed out, are ordered in a XML li...

How to read a local xml file

I want to create a NSURL object out of a NSString, where I use -fileURLWithPath:(NSString ) I put my xml file as my source file, and name it event.xml. But NSString URL = @"event.xml"; NSURL a = [NSURL fileURLWithPath:URL]; but then my xmlparser return a connection failed error. so what's the correct way to specify the path of a xml i...

Is there a reason why sites like Facebook/Digg/Reddit would not parse the proper meta tags on a page for title/description?

Any given article on our site has the meta tags for title, description, image, and keywords in the head element, but for some reason none of the news aggregate sites won't pull any of it. http://darthhater.com/2010/06/25/friday-update-preview http://darthhater.com/2010/06/24/official-bioware-stance-on-game-testing-leaks Not trying to p...

ActionScript Setting Object Properties From Other Object Properties?

i'm attempting to cast an object's property as an actual property of another object. here's my object variable: var propObj:Object = {prop:"width", width:50}; now i want to assign the property of a sprite using that object's properties. var sp:Sprite = new Sprite(); sp.(propObj.prop as Sprite.property) = propObj.width; now, i'm no...

xpath query to xpath result of query

for example we have this xml: <body> <a> <b> <c>hello</c> <c>world</c> </b> </a> <a> <b> <c>another hello</c> <c>world</c> </b> </a> </body> by Xpath query we can find all "B"-tags. But then w...

Is there ANY cross-platform way of validating xml against an xsd in javascript?

As far as I can tell, the only way of doing it is to use the Microsoft DOM object, but as far as I'm aware this isn't universally available, if you're browsing with Firefox on Linux for example. For reasons of security and minimizing network traffic I can't pass the xml to an external tool to validate (much as I wish I could). Is there ...

Deserializing with XmlSerializer List into Dictionary.

I am serializing data into xml by converting Dictionary into List. The serialization is ok. Is it possible to populate dictionary on deserialization? (right now I populate dictionary after deserialization completes and list is returned ) [Serializable] public class Attribute { public string Key { get; set; } pu...

how to specify one property to come under a node as subnode in xml using attributes

public class abc { public string b; public string c; } <a> <b></b> <c></c> </a> and can we explicitly specify "a" ...