{"id":2839,"date":"2014-02-23T08:25:12","date_gmt":"2014-02-23T08:25:12","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/02\/23\/phpxmlxml-parsingview-the-original-page-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:49:28","modified_gmt":"2022-08-30T15:49:28","slug":"phpxmlxml-parsingview-the-original-page-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/02\/23\/phpxmlxml-parsingview-the-original-page-collection-of-common-programming-errors\/","title":{"rendered":"php,xml,xml-parsingView the original page-Collection of common programming errors"},"content":{"rendered":"<h3>UnKnown Error<\/h3>\n<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/c73ce5262b9e6b101fc9ff30df46a970?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJeff<br \/>\nphp quotes cpanel 2014-2-17 0:21:06<br \/>\nI have a vps with cPanel\/Whm\/CentOS 5.5 and the problem is that all parameters sent to my server are being addslashed, I&#8217;ve checked out the PHP configuration and i found out that all the magic quotes are turned off and i don&#8217;t know what causes this.My code is so clean and i know every bit of it and i don&#8217;t have any addslashes() or some sort of these functions. i only want to receive the parameters as they are.URL: test.php?text=blah&#8221; &#8216; &#8221; &#8216;blah&lt;?php echo $_GET[&#8220;text&#8221;]; \/\/ Output blah\\&#8221; \\&#8217; \\&#8221; \\<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/660c46945638857ef792d7f91514e1cc?s=32&amp;d=identicon&amp;r=PG&amp;f=1\" \/><br \/>\nPrince Ehsham<br \/>\nphp 2014-2-16 23:53:22<br \/>\nHow to do this by for loop ? I wants to set variable according to their existence in array &#8230;if (isset($sort[3])) $c = 3; if (isset($sort[4])) $d = 4; if (isset($sort[5])) $e = 5; if (isset($sort[6])) $f = 6; if (isset($sort[7])) $g = 7; if (isset($sort[8])) $h = 8; if (isset($sort[9])) $i = 9; if (isset($sort[10])) $j = 10; if (isset($sort[11])) $k = 11; if (isset($sort[12])) $l = 12; if (isset($sort[13])) $m = 13; if (isset($sort[14])) $n = 14; if (isset($sort[15])) $o = 15;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/1K4L0.jpg?s=32&amp;g=1\" \/><br \/>\nhakiko<br \/>\nphp windows browser 2014-2-16 20:34:07<br \/>\nI have an idea, and i have a single php local web page running on localhost and i want to use GUI for 3 buttons : shut down , sleep and restartIs PHP allows to me for these operations? Are there ready to write classes, methods in PHP?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/3f0bcd40079e38e504dcaed58cfa29f3?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJack<br \/>\nphp upload 2014-2-16 19:44:07<br \/>\nI am uploading profile images to a directory on the server. The script works fine, however I can&#8217;t seem to get anything but small file size images to upload. Anything above about 2mb fails. I don&#8217;t have access to the php.ini but I have added the following to htaccess with no luck. I have tried every other solution I can find online with no luck. Any ideas?php_value upload_max_filesize 10M php_value post_max_size 10M php_value max_input_time 400 php_value max_execution_time 400<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/892c9d0277e1c889a78d49cbdb323a83?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAbilash Amarasekaran<br \/>\nphp google-app-engine sdk 2014-2-16 17:01:53<br \/>\nI installed the latest SDK for php 1.8.1 and I am having trouble getting it to run locallyD:\\google_appengine 1.8.1&gt;dev_appserver.py &#8211;php_executable_path=D:\\PHP\\php-cgi.exe \\Testing &#8211;port=5000INFO 2013-06-13 03:16:30,931 sdk_update_checker.py:244] Checking for updates to the SDK.INFO 2013-06-13 03:16:32,851 sdk_update_checker.py:260] Update check failed: HTTP Error 404: Not Found**WARNING 2013-06-13 03:16:32,861 api_server.py:314] Could not initialize images API; you are likely missin<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/becff82556bc70961d16ad5f6a936db7?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser2400390<br \/>\nphp windows dll php-extension php-internals 2014-2-16 15:34:41<br \/>\nI&#8217;ve been attempting for a last few days to make use of the operator overloading extension (pecl.php.net\/package\/operator), which has apparently been updated recently to be compatible with 5.3 and 5.4.I&#8217;ve tried compiling it in windows (64-bit Windows 7) using this guide, with PHP 5.4 and Windows SDK 7.1 without luck. So I tried doing it with PHP 5.3 and Windows SDK 6.1 and I can get it to successfully compile with the config &#8220;configure &#8211;disable-all &#8211;enable-cli &#8211;enable-operator&#8221; and then &#8220;nma<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6b409098b485a41cb7b542898c794dff?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nChristian<br \/>\nphp str-replace 2014-2-16 12:59:48<br \/>\nI am working on a file that should replace a variable in another file. So far I tried:$File = &#8220;$dir\/submit.php&#8221;; $fh = fopen($File, &#8216;r&#8217;) or die(&#8220;Couldn&#8217;t edit the Config-file. Please report to admin.&#8221;); $chosendb = str_replace(&#8216;$chosendb = comments;&#8217;,&#8217;$chosendb = wuhuws_$dir;&#8217;,&#8217;$chosendb&#8217;); fclose($fh);$dir is a user input. comments is a table in the database that need to replaced with the prefix_$dir.What do I do wrong?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/MGhY2.png?s=32&amp;g=1\" \/><br \/>\nhakre<br \/>\nphp oop 2014-2-16 10:42:35<br \/>\nI want to call a function every time a method call is made in PHP.Example :$a = new a(); $a-&gt;function1();this would make 2 function calls: basicFunction() and then function1()Same would be the case for any subsequent method calls of that class. is this possible in object oriented PHP?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/23f713a5f9ce7efa7083857d308645f0?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJerome WAGNER<br \/>\nphp configuration precompiling 2014-2-16 9:49:14<br \/>\nMy application gets configured via a lot of key\/values (let&#8217;s say 30.000 for instance)I want to find the best deployment method for these configurations, knowing that I want to avoid DEFINEs to allow for runtime re-configuration.I have thought ofpre-compiling them into an array via a php file pre-compiling them into a tmpfs sqlite database pre-compiling them into a memcached dbwhat are my options for the best random access time to these configuration (memory is not an issue) ? the best structure<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/f503033e20006187ed78959f463800c5?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAnu<br \/>\nphp mysql 2014-2-16 8:43:48<br \/>\nI am trying to create a view from another view from php and im not getting any error but it simple does not create a view. I can manually create view from another in the mysql console but not from php. Any idea where I am going wrong?function createTransaction_file($db,$file_id){$sql = &#8220;CREATE VIEW transaction_file AS SELECT context,transaction_type,starttime,stoptime,stoptime &#8211; starttime AS runtime,correlator,parent_correlator,iteration FROM transactions WHERE file_id =&#8221; . $file_id . &#8221; ORDER BY<\/li>\n<\/ul>\n<ul>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/KynGD.jpg?s=32&amp;g=1\" \/><br \/>\nMiles Chen<br \/>\nc# xml serialization 2014-2-16 16:17:10<br \/>\nI have a weird requirement on xml serialization.Refer the following C# code (which cannot be compiled due to the variable &#8216;rootName&#8217; is out of scope). My intention is to make my class GeneralData be &#8216;general&#8217;. Which means this class can be serialized to different XML strings with different root element according to the input parameter for the class constructor.[XmlRoot(ElementName = rootName)] public class GeneralData : Dictionary&lt;String, Object&gt;, IXmlSerializable {public string rootName;p<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/2936cec6a3ee0181288681332dd60c3f?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nRyan Thames<br \/>\njava xml jaxb 2014-2-16 15:25:07<br \/>\nI&#8217;m looking to update our project&#8217;s jaxb version from 1 to 2. Has anyone tried doing this on their projects and are there any tips that anyone wanting to do this? I understand that each project is unique, I&#8217;m just looking for general tips.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/a414a4c0ba3075e8a8c6d2df1df65c0f?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJake<br \/>\nc# xml web-services types 2014-2-16 15:07:10<br \/>\nI have a followup question to this question.I&#8217;m writing a web service which dynamically calls other web services, using the WSProxy class found here.Using WSProxy returns an object with a dynamic type, depending on the web service method called. For example, if I&#8217;m calling a method that returns&#8230;&lt;StateCodes&gt;&lt;StateCode&gt;&lt;Code&gt;AL&lt;\/Code&gt;&lt;Name&gt;Alabama&lt;\/Name&gt;&lt;\/StateCode&gt;&lt;!&#8211; and so on &#8211;&gt; &lt;\/StateCodes&gt;then the object is of the type StateCodes[].If<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/AORA3.png?s=32&amp;g=1\" \/><br \/>\nPetru Gardea<br \/>\nxml xslt 2014-2-16 11:16:18<br \/>\nI have this XML file:&lt;Response&gt;&lt;errorCode&gt;error Code&lt;\/errorCode&gt;&lt;errorMessage&gt;msg&lt;\/errorMessage&gt;&lt;ResponseParameters&gt;&lt;className&gt;&lt;attribute1&gt;a&lt;\/attribute1&gt;&lt;attribute2&gt;b&lt;\/attribute2&gt;&lt;\/className&gt;&lt;\/ResponseParameters&gt; &lt;\/Response&gt;And I want the output to be:&lt;className&gt;&lt;attribute1&gt;a&lt;\/attribute1&gt;&lt;attribute2&gt;b&lt;\/attribute2&gt; &lt;\/className&gt;My current XSL file is including also &#8220;ResponseParam<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/b4779212f57ff2e9549ea90a4499c2d7?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nmarc_s<br \/>\njava xml file servlets properties 2014-2-16 10:43:09<br \/>\nI have a web app in java, and in a servlet I need to load properties from a xml file.The code isXMLReader reader = XMLReaderFactory.createXMLReader(); &#8230; FileInputStream fis = new FileInputStream(&#8220;myconf.xml&#8221;); reader.parse(new InputSource(fis));My question is: where should the myconf.xml file be placed in the war file so the servlet can find it?Thanks<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/a49c9c44cb376a82229497b35d457cb7?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser1051086<br \/>\nc# android xml xamarin 2014-2-16 4:59:10<br \/>\nI have this Button inside a RelativeLayout which is included as part of a custom ListView row Layout.&lt;Buttonp1:text=&#8221;Edit&#8221;p1:layout_width=&#8221;75dp&#8221;p1:layout_height=&#8221;wrap_content&#8221;p1:id=&#8221;@+id\/editButton&#8221;p1:layout_centerHorizontal=&#8221;true&#8221;p1:background=&#8221;@drawable\/btn_blue&#8221;p1:textColor=&#8221;@color\/white&#8221;p1:focusable=&#8221;false&#8221;p1:layout_below=&#8221;@id\/sparyTableLayout&#8221;p1:textAppearance=&#8221;?android:attr\/textAppearanceMedium&#8221;p1:onClick=&#8221;myClickHandler&#8221; \/&gt;When the user clicks the Button, I want the Button to call t<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6296d14a6d4c00e06a7803e3c232f7f4?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nDiableNoir<br \/>\nc# xml xpath-2.0 xpathnavigator 2014-2-16 4:39:46<br \/>\nI want to read some Nodes from a XmlDocument-Object using the SelectNodes-Method and the XPathNavigator-Class.But C# is unable to evaluate this (validated with XMLSpy) XPath-Expressen:\/\/LogicUnit[exists(Level[@val = &#8216;R&#8217;])]\/LogicLines[exists(LogicLine\/DATAVIEW_SRC)]The Runtime throws the XPAthException &#8220;Namespace Manager or XsltContext needed. This query has a prefix, variable, or user-defined function.&#8221;I don&#8217;t understand this exception because my XML-Document doesn&#8217;t use any Namespaces and there<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/315b95cdcac83705c10ea14e239aeaf5?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nGeorge Mauer<br \/>\n.net xml inversion-of-control castle-windsor 2014-2-15 20:34:32<br \/>\nI have the following component public class MyTimer : IMyTimer {public MyTimer(TimeSpan timespan){&#8230;} }Where timespan should be provided by the property ISettings.MyTimerFrequency.How do I wire this up in windsor container xml? I thought I could do something like this:&lt;component id=&#8221;settings&#8221;service=&#8221;MySample.ISettings, MySample&#8221;type=&#8221;MySample.Settings, MySample&#8221;factoryId=&#8221;settings_dao&#8221; factoryCreate=&#8221;GetSettingsForInstance&#8221;&gt;&lt;parameters&gt;&lt;instance_id&gt;1&lt;\/instance_id&gt;&lt;\/p<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/1e79a5faf8d3dd2170609479159694be?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAdrian Collado<br \/>\nc# xml visual-studio dynamic 2014-2-15 15:26:40<br \/>\nI am trying to create controls at runtime by using an XML file. How would I access these controls after creating them with names specified by the XML file?For instance, if I had a series of controls in an XML file:&lt;control id=&#8221;0&#8243; type=&#8221;textbox&#8221;&gt;&lt;param id=&#8221;0&#8243; type=&#8221;(name)&#8221;&gt;DynamicTextbox&lt;\/param&gt;&lt;param id=&#8221;1&#8243; type=&#8221;location&#8221;&gt;100,73&lt;\/param&gt;&lt;param id=&#8221;2&#8243; type=&#8221;size&#8221;&gt;119,20&lt;\/param&gt; &lt;\/control&gt; &lt;control id=&#8221;1&#8243; type=&#8221;button&#8221;&gt;&lt;param id=&#8221;0&#8243; type=&#8221;(n<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/e2e7596c0d609b726a438b8dadc0d9d9?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nricharbernal<br \/>\nandroid xml parsing 2014-2-15 3:54:40<br \/>\nI want to extractly diffrenece of four above types.When use SAXPaser,when use others..What is have effective ex.<\/li>\n<\/ul>\n<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/60be20a4ebc869584d2b4042db3e6d05?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nRocco<br \/>\njava xml xml-parsing jaxb 2014-2-10 19:31:39<br \/>\nAm working with the server response with my application. am getting this stuff as response as string. &lt;Body&gt;&lt;HotelRQ xmlns=&#8221;urn:Hotel_Search&#8221;&gt; &lt;POS&gt;&lt;Source Username=&#8217;USERNAME&#8217; Password=&#8217;PASSWORD&#8217; PropertyID=&#8217;PROPERTYID&#8217; \/&gt; &lt;\/POS&gt; &lt;AvailRequests&gt;&lt;AvailRequest&gt;&lt;StayDateRange Start=&#8217;2009-09-05T12:00:00&#8242; End=&#8217;2009-09-06T12:00:00&#8217;\/&gt;&lt;RoomStays&gt;&lt;RoomStay&gt; &lt;!-for Room 1-&gt;&lt;GuestCounts&gt;&lt;GuestCount Count=&#8217;2&#8217;\/&gt;&lt;\/GuestCounts&gt;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/aee3b44e5f0b4dfa0e2da672897b3751?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nj0k<br \/>\npython character-encoding python-3.x xml-parsing 2014-2-3 8:16:11<br \/>\nI have to parse some xml output (from a request to a web site) like below bellow. They are partly in English, partly in French. I am not able to decode and to print (on screen, on file) the French accents like &#8216;\u00e9&#8217; or &#8216;\u00e0&#8217;When I use decode(&#8216;utf-8&#8217;), I have a wrong result like &#8216;\u00c3\u00a8&#8217;. I am using python 3.3. b&#8217;Extr\\xc3\\x83\\xc2\\xaamement fort et incroyablement pr\\xc3\\x83\\xc2\\xa8s&lt;\/title&gt;&lt;originaltitle&gt;Extremely Loud And Incredibly Close&lt;\/originaltitle&gt;&lt;year&gt;2011&lt;\/year&gt;&lt;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/3b0e463a5f4ce4b025aff87a53ca04b5?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJD White<br \/>\nxml xml-parsing xml-schema jibx 2014-2-1 7:32:15<br \/>\nI&#8217;m using JiBX to unmarshall XML based on a XSD provided by external source; unfortunately, some of the &#8216;required&#8217; fields are not always present in the XML, which is causing JiBX to throw &#8216;org.jibx.runtime.JiBXException: Missing required element&#8217;.I know I can edit the XSD files and change the &#8216;required&#8217; fields to optional, but since these files are updated periodically I would rather not do this. Is there a setting in JiBX I can change (either at compile\/binding time or at runtime) to ignore mi<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/a6c38861306eec31c194bc433c808aba?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nClaes<br \/>\nc linux xml-parsing parser-generator 2014-1-29 5:19:41<br \/>\nI have a c program, that gets its settings from an XML file. Currently I&#8217;m using Xerces to traverse the data, but it&#8217;s getting quite tedious to map each XML-value to a variable.The same XML is also read by a Java program, which is much more convenient due to JAXB creating all the necessary classes and such in Java. I&#8217;m looking for something similar that can create a &#8220;structure of structs&#8221; or some such. It&#8217;s important that I get c structs, and not c++ classes, because this code will run on GPUs.I<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/f5ef1b81e1aeb3b921a3034d460ce6af?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nkiamlaluno<br \/>\nphp xml xml-parsing html-entities 2014-1-28 3:53:14<br \/>\nI am currently running into a problem where an element is coming back from my xml file with a single quote in it. This is causing xml_parse to break it up into multiple chunks, example: Get Wired, You&#8217;re Hired! Is then enterpreted as &#8216;Get Wired, You&#8217; being one object, the single quote being a second, and &#8216;re Hired!&#8217; as a third.What I want to do is:while($data = fread($fp, 4096)){if(!xml_parse($xml_parser, htmlentities($data,ENT_QUOTES), feof($fp))) {break;}}But that keeps breaking. I can run a s<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/81d2c0d1e169fccb63893706ef70db19?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nrmaddy<br \/>\nobjective-c memory-management ios6 xml-parsing 2014-1-24 19:25:14<br \/>\nI am parsing an xml feed (with a NSXML parser) where I need to create a bunch of the same object, foo, and then add these objects to a NSMutableArray. My question concerns memory management while I attempt this.As I see it, my two options are: 1) Create a factory method that creates the objects as I need them. This is my factory method, which I&#8217;ve added as a method in the xml parser.+ (id)create_foo { return [[foo alloc] init]; }2) I have automatic reference counting on. So I was thinking tha<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/de6eafe28472ceb9522fd3f609afed53?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ntim_yates<br \/>\ngroovy xml-parsing xml-schema spring-integration 2014-1-20 6:31:56<br \/>\nI am working on a Spring Integration project and writing a sample transformer using Groovy. Given below is the sample from the Spring configuration file &#8211;&lt;int:transformer input-channel=&#8221;channel8&#8243; output-channel=&#8221;channel9&#8243;&gt;&lt;int-groovy:script&gt;&lt;![CDATA[if (!payload.equals(&#8216;hello&#8217;)) {throw new RuntimeException(&#8216;invalid payload&#8217;)}payload]]&gt;&lt;\/int-groovy:script&gt; &lt;\/int:transformer&gt;I have imported the following namespace and also there is no error shown for the xml Sprin<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/5288257c48bd582989e1db20fad8e324?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nRandomGuy<br \/>\nc# .net xml-parsing cli desktop-application 2014-1-18 0:12:04<br \/>\nI have a CLI application which is able to edit XML files with some parameters.However I&#8217;m needing now a more powerful way to do it.I want to give users the option to edit XML files using custom code from a .txt for total control over the XML editing.For example:@CODE File&lt;file name for XML editing&gt; &lt;code&gt; # Custom XML parser\/editing code for elem in tree.iter(tag=&#8217;location&#8217;): if elem.text == &#8216;J&#8217;:elem.text = &#8216;January&#8217; &lt;\/code&gt;Which would be the safest way to do this in .net C#? I<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/fdd96456f9f1e17936b8752c16183973?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser1740281<br \/>\nandroid xml-parsing runtimeexception xmlpullparser 2014-1-18 0:11:33<br \/>\nI am parsing online Xml using XmlPullParserFactory and showing the details in a listview. I have put the condition for checking internet, but sometimes it takes time to fetch data and crashes.The code which I am using is below.private void runningABackProcess() {Handler mHandler = new Handler(Looper.getMainLooper());Runnable myRunnable = new Runnable() { public void run() {try{\/\/Thread.sleep(5000);new DoSomeTask().execute(); }catch(Exception e){}\/<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/6vxpG.png?s=32&amp;g=1\" \/><br \/>\nzohreh<br \/>\nandroid layout xml-parsing layout-inflater 2014-1-17 23:56:32<br \/>\nI want display received layout file from server to user.after googling I find out I cant place my file in raw\/asset folder and can&#8217;t use android&#8217;s LayoutInflater for inflat my file .one existing way is use Defaulthandler and processing it for creating views and viewgroups.please help me with represent other ways that I can use for this problem with example.thanks<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>UnKnown Error Jeff php quotes cpanel 2014-2-17 0:21:06 I have a vps with cPanel\/Whm\/CentOS 5.5 and the problem is that all parameters sent to my server are being addslashed, I&#8217;ve checked out the PHP configuration and i found out that all the magic quotes are turned off and i don&#8217;t know what causes this.My code [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,1],"tags":[],"class_list":["post-2839","post","type-post","status-publish","format-standard","hentry","category-php-memcached","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2839","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2839"}],"version-history":[{"count":1,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2839\/revisions"}],"predecessor-version":[{"id":8991,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2839\/revisions\/8991"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2839"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2839"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2839"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}