3,634 Topics
| |
I am having problem with maxOccurs in my code.. it is cauisng an error. Could anyone could aid me to avoid having error? <xs:simpleType name="nameType"> <xs:restriction base="string"> <xs:minLength value="1" /> <xs:maxLength value="20" /> </xs:restriction> </xs:simpleType> <xs:element name="information"> <xs:complexType> <xs:sequence> <xs:element name="personal" maxOccurs="10"> <xs:complexType> <xs:sequence> <xs:element type="nameType" name="name"/> <xs:element type="nameType" name="surname"/> … | |
Hi, i have had made in the past a php file to download a supplier list in xml format, import it to a temp database with a datestamp then the file will check to see if product exists or not, has been removed from the file since last time or … | |
The following code produces the XML file that I am after. $dom = new DOMDocument('1.0', 'UTF-8'); // pretty formatting $dom->formatOutput = true; // create root element $root = $dom->createElement('Poem'); $root->setAttribute('object_id', '542'); $dom->appendChild($root); // create title element $title = $dom->createElement('title'); $root->appendChild($title); // create a node for the title element $text = … | |
XSL does not compile when and only I use xalan:evaluate. Setting in system properties ---------------------------- sysProps.setProperty("javax.xml.transform.TransformerFactory", "org.apache.xalan.xsltc.trax.SmartTransformerFactoryImpl"); XSLT snippet -------------- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xalan="http://xml.apache.org/xalan" exclude-result-prefixes="xalan"> <xsl:template name="my_test_template"> <xsl:param name="my_test_param" /> <xsl:if test="xalan:evaluate($my_test_param)"> some statements </xsl:if> <xsl:if test="not(xalan:evaluate($my_test_param))"> some statements </xsl:if> </xsl:template> ERROR LOG ----------------------------------------------- ERROR: 'Cannot find external method 'org.apache.xalan.lib.Extensions.evaluate' … | |
Have a heck of a time writing XPATH to parse this XML response. Source data is (removed a bunch to save the innocent: `<?xml version="1.0" encoding="UTF-8"?><env> <ProcessResponse> <message> <payLoad> <BillingXMLMessage> <Envelop>SITEINFORESPONSE</Envelop> <COMPONENT DATATYPE="FLDPARAMINFO" NAME="ACCOUNTINFO"> <FIELD DATATYPE="FLDSTRING" NAME="ServiceType">/service/ip</FIELD> <FIELD DATATYPE="FLDBOOLEAN" NAME="ReactivationFlag">false</FIELD>`' XPATH statement is `/env/ProcessResponse/message/payLoad/BillingXMLMessage/COMPONENT[1]/FIELD[@NAME='ServiceType']` Which only gets me `Element='<FIELD DATATYPE="FLDSTRING" … | |
Can you save the entire contents of an xml to one varaible in c#? | |
Hi, So, I'm trying to do what's presented in this Quora thread: http://www.quora.com/How-can-I-export-YouTube-comments-into-a-spreadsheet I want to know how to frame the parameters for a YouTube video's comment feed, the comment author, and the comment text itself, using =ImportXML for Google Docs. My Xpath is weak -- can't figure out the … | |
Actually I have a raw data which will have the information about scan rejected files. Each rejected item will log info. in 3 elements in raw data i.e i)ScanRejected ii) ScanInitiated iii) CardSupplier. I'm trying to process this raw data and put it in XML in a formatted way. While … | |
http://api.ean.com/ean-services/rs/hotel/v3/list?minorRev=4&cid=55505&apiKey=5q4gzx43g6ukcrq798z2hz75&customerSessionId=&locale=en_US¤cyCode=USD&xml=<HotelListRequest><city>new%20delhi</city><RoomGroup><Room><numberOfAdults>2</numberOfAdults><numberOfResults></numberOfResults></Room></RoomGroup></HotelListRequest> when i call api directly to browser i got right data in xml format. but when i call it through curl.. sometime i get data in json format or sometimes no data.. [CODE] $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"http://api.ean.com/ean-services/rs/hotel/v3/list?minorRev=4&cid=55505&apiKey=5q4gzx43g6ukcrq798z2hz75&customerSessionId=&locale=en_US¤cyCode=USD&xml=<HotelListRequest><city>new%20delhi</city><RoomGroup><Room><numberOfAdults>2</numberOfAdults><numberOfResults></numberOfResults></Room></RoomGroup></HotelListRequest>"); curl_setopt($ch, CURLOPT_FAILONERROR,1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION,1); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_TIMEOUT, 15); $retValue = … | |
I am sorta new to MySQL and not 100% sure of what I can and can not do with it yet. I have an xml file with course information such as ReferenceNo. CourseName, CourseType, CourseLocation, and I want to load in into a database table that has column names such … | |
Hi All We are having an issue where a WSDL is loading another WSDL into it when we call it. This call takes a while on the first call which normally causes failures across the application during testing. One option we are looking into is pre-caching the WSDL in IIS … | |
[ $("#flowchart22").click(function() { var xml = "\n"; $("li").each(function() { var cells = $("li", this); if (cells.length > 0) { xml += "\n"; for (var i = 0; i < cells.length; ++i) { xml += "\t<" + cells.eq(i).text() + "> </" + cells.eq(i).text() + ">\n"; } xml += "\n"; } }); … | |
Hi, I am working on a test site locally. I am loading an xml file into my database with teh following sql query: LOAD XML LOCAL INFILE 'C:/courseInfo18.xml' INTO TABLE wp_courses ROWS IDENTIFIED BY '<Course>' (ReferenceNo, ProviderCode, ProviderName, CourseID, CourseName, CourseTypeID, CourseTypeName, LocationCode, LocationName, StartDate, FinishDate) ; It works fine … | |
Spring has been getting rather unseasonably hot for Apache users as far as security flaws go. First there was news of how the FREAK (Factoring Attack on RSA-EXPORT Keys) vulnerability could impact Apache. For more on FREAK see this [excellent analysis](http://blog.cryptographyengineering.com/2015/03/attack-of-week-freak-or-factoring-nsa.html) by Matthew Green, a cryptographer and research professor at … | |
My build.xml can run junitTest well but when I tried to build with cobertura instrument, JunitTest failed, Why? <target name="instrument" depends="compile"> <echo> ====== run target instrument ==== </echo> <!-- Remove the coverage data file and any old instrumentation. --> <delete file="${junit.dir}/cobertura.ser" /> <delete dir="${instrumented.dir}" /> <!-- Instrument the application classes, … | |
Hi All, I am a unix script debeloper and I am very new to html coding with basic awarness of syntax. My question is how to add html attributes inside the paragraph which actually contains my XML data? <LIST> <ControlSegment TABLENAME="QueueGeneric" CLIENT="PST" DOCUMENTSTATUS="" PARTNERTYPE="TP" EDITXM="410" EDIVERSION="005010" EDIMESSAGETYPE="4100" EDIMESSAGECODE=""/> </LIST> When … | |
Hi People, I was trying to get data from xml file to my textBoxes in another form. But i get stuck.. all morning trying, searching on google, forums.. Im trying to on double click in listview item , call my AddPerson(Form) to edit that selected person.. but all ways i … | |
Hi people, i need to delete selected row in ListView from xml file.. i have this code: private void tsBtnDeleteRow_Click(object sender, EventArgs e) { if (listView1.SelectedItems.Count == 0) return; XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load("diogomonteiro.xml"); //XmlNodeList newXMLNodes = xmlDoc.SelectNodes("/Pessoas/Pessoa[name=wd]"); PessoaListViewItem item = (PessoaListViewItem)listView1.SelectedItems[0]; string value = item.ToString(); if (item != … | |
I have been told to do a novice-level project on webservices. I surfed for a while to reach something called Microsoft SOAP development kit. I think it will be really helpful if somebody helps me figure out the theme for my project. Is it OK for a beginner to work … | |
hello experts, I want to show .jrxml file in html div as a preview of created report. I am using eclipse luna and I was created a report in jasper soft studio 6.0. and i need to show this jrxml file in html <div> </div> So please help me. thank … | |
I'm having a problem with my XML and XSL pages. My XSL sheet is not complete yet, but when I go to view my XML to see how it looks so far, I get an error saying, "Error loading stylesheet: Parsing an XSLT stylesheet failed." Does anyone know why this … | |
I am just in the first week of XML class. Never even heard of it before this class. I am getting this error message, and here is my output. I have tried in IE and Chrome. Same result. Can someone tell me what I am doing wrong? Thank you!!! Teddi … | |
I am trying to install drush on a shared server with hostgator. Everything goes smoothly when I try to run drush basically it says command not found. Please can anyone help. Kind Regards, Jonathan | |
| Hello, I am trying to query an xml table. Here's the basic structure: <Table> <GroupPermissions> <Group GroupName="Name"> <ModuleRestricitons> <Module1> <Button1 value="False" /> </Module1> </ModuleRestrictions> </Group> </GroupPermissions> </Table> The logic I am tyring to perform is this: Where GroupName="Name" set button 1 value="True". There are many other groups, so I need … |
Form1.cs public partial class Form1 : Form { DataSet ds = new DataSet(); DataTable table = new DataTable(); //List<Pessoa> p = new List<Pessoa>(); public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { //Add Columns to DataTable (table) table.Columns.Add("Nome", typeof(string)); table.Columns.Add("Idade", typeof(string)); table.Columns.Add("Profissão", typeof(string)); table.Columns.Add("Signo", typeof(string)); table.Columns.Add("Morada", typeof(string)); … | |
I'm trying to write a javascript routine to crawl an XML document (of unknown elements) and parse out name/value pairs where "<nodename>nodevalue</nodename>" would come out as "nodename=nodevalue". What I have works great through the second element, then it stops traversing. I feel like I'm close but I just cant get … | |
Hello all, I have a problem with a program i'm trying to write. I only need 1 more thing to make it work properly, the textboxes that are filled in must be added or overwritten in an existing XML file. I know i need to work with XMLWriter, but i … | |
Need to display xml file in html div by using external JavaScript? | |
Hi there ! I have xml and xsl files i need to convert them to xslfo files . I need this to convert to pdf files. Thanks. | |
Good day all ! i have a multi-dimensional array. the array was carefully built from my xml structure. here's it : array (size=1) 'Articles' => array (size=4) '@About' => string 'programming' (length=11) '@compile' => string 'pro' (length=3) 'Article' => array (size=3) 0 => array (size=6) ... 1 => array (size=6) … |
The End.