I'm getting started with ASP.NET MVC, but would like to explore further. I've walked through the usual "hello, world" examples, and now I'd like to try something a little more complex. Specifically, I want to be able to:
upload some XML file,
do some simple processing on it, and then
allow the user to download a new file with the resul...
Hello There,
For a new project I need to load big XML files (200MB+) to a mySQL database. There are +- 20 feeds i need to match with that (not all fields are the same).
Now when i want to catch the XML I get this error:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 171296569 bytes) in E:\UsbWebserve...
Hello All,
I am a .net developer, now trying to learn PHP for the first time. .Net provides API to parse complex XML files. How one can achieve this using PHP? I have some samples which uses basic XML files. I am using XML structure having attributes included in it.
Please help to achieve this.
Thanks in advance. :)
...
Hi,
I am trying to set the width variables <WIDTH> and <WIDTH1> within XSL which I am retriveing from the web.config within c# as below:
string Width1 = System.Configuration.ConfigurationSettings.AppSettings.Get("Width1");
string Width2 = System.Configuration.ConfigurationSettings.AppSettings.Get("Width2");
cslx.Xslt=@"<?xml vers...
I want to model a simple (IF Then) rule using DTD. This is what I have come up with:
<!ELEMENT forward ((rule | fact)*)>
<!ELEMENT rule (if, then)>
<!ELEMENT fact (#PCDATA)>
<!ELEMENT if (#PCDATA)>
<!ELEMENT then (#PCDATA)>
This is a dtd for a forward rule ( p => c). I want to model the backward ru...
I'm having some trouble to figure out how to make the "page load" architecture of a website.
The basic idea is, that I would use XSLT to present it but instead of doing it the classic way with the XSL tags I would do it with JavaScript. Each link link should therefore refer to a JavaScript function that would change the content and menu...
Hey,
I have a method that gives back a formatted XML string. I want to show that on a JSF page in a nicely wrapped, readable way. I used this solution first.
<pre><h:outputText value="myBean.xml"/></pre>
The result is indented, but it doesn't wrap very long lines (with a lot of attributes for e.g.)
RichFaces is also available in my ...
I have XML data like this:
<search ver="3.0">
<loc>Birmingham, AL</loc>
<loc>Gulf Shores, AL</loc>
<loc>Alabama, NY</loc>
<loc>Abbeville, AL</loc>
<loc>Abernant, AL</loc>
</search>
I would like to return the name of the places. How may I extract this data using Visual Basic?
...
Hi all.
I have this script to generate an XML file for an RSS feed. Works great in every browser except Chrome. Chrome just renders the XML as text. Something to do with header("Content-Type: application/rss+xml; charset=ISO-8859-1"); possibly?
This is the code I'm using:
<?php
$linkUp = "http://localhost/sites/myBlog/";
header("...
I was trying to use http://www.jongsma.org/gc/scripts/ofx-ba.py to grab my bank account information from wachovia. Having no luck, I decided that I would just try to manually construct some request data using this example
So, I have this file that I want to use as the request data. Let's call it req.ofxsgml:
FXHEADER:100
DATA:OFXSGML
...
I have several XML files that I wish to read attributes from. My main objective is to apply syntax highlighting to rich text box.
For example in one of my XML docs I have: <Keyword name="using">[..] All the files have the same element: Keyword.
So, how can I get the value for the attribute name and put them in a collection of strings...
Having used FlashDevelop with a project, and switched to FDT/Eclipse. I am sorting through hundreds of warnings in my code.
Quite a few relate to XML and JSON syntax this project is using. In the following, I'm not sure what to cast the XML containing data as so that it is recognised by the compiler
Example:
public function convertXML...
Edit: I hardcoded the charcter and use repsonse writer to write it, it still comes out to be
K�nigsberger
response.setCharacterEncoding("UTF-8");
response.setContentType(contentType);
//if(contentType!=null)response.setHeader("Content-Type",contentType);
Writer writer = response.getWriter();//new OutputStreamWriter(...
How do i check if a TAGname exists inside an XML file.
so if i want to get
$dom->getElementsByTagName('error')
and it doesn't exist, it prints out something like an error message.
EDIT:
I'm working from an API. So what happens is when a user enters an incorrect username, another XML files is loaded that contains the tag <error>.
H...
I've used this in the past to build comma seperated lists:
var list = new List<int>{1,2,3};
var retVal = list.Select(i=>i.ToString()).Aggregate((a,b) => a+", "+b);
Works great.
I'm trying to do the same sort of thing to 'wrap' each element as an xml node.
Something like:
Aggregate((a, b) => string.Format("<ID>{0}</ID><ID>{1}</ID>",...
I don't want to do anything fancy, I just want to make sure a document is valid, and print an error message if it is not. Google pointed me to this, but it seems XmlValidatingReader is obsolete (at least, that's what MonoDevelop tells me).
Edit: I'm trying Mehrdad's tip, but I'm having trouble. I think I've got most of it, but I can't f...
I have the following (example) of my xml document:
<Students>
<Student ID = *GUID NUMBER*>
<FullName>John Smith</FullName>
<Address>123 Fake St</Address>
</Student>
<Student ID = *GUID NUMBER*>
<FullName>Henry Doe</FullName>
<Address>321 Whatever Lane</Address>
With more data in each person. What I want to...
Hello, I have XML that looks like this:
<ROW ref="0005631" type="04" line="1" value="Australia"/>
<ROW ref="0005631" type="00" line="1" value="John"/>
<ROW ref="0005631" type="02" line="1" value="Builder"/>
<ROW ref="0005631" type="01" line="1" value="Smith"/>
I need a solution in XSL to format it to look this this:
John Smith Builde...
I want a fast way to grab a URL and parse it while streaming. Ideally this should be super fast. My language of choice is Python. I have an intuition that twisted can do this but I'm at a loss to find an example.
...
I am working on a Magic The Gathering game simulator. I haven't found any free systems that allow you to create your own decks which also manage the game (life/toughness, counters, triggered events, etc.).
My problem is that I need to find an efficient way to have triggered events fire for cards which are in play. I am envisioning the c...