233 Topics
|
|
Hi all, I've browsed the net trying to find a paradigm to describe what I'm looking for but haven't been successful. So I'll try to explain it as succinctly as I can. Right now, for my PhD research, I've set out a few applications that take input files that have … |
|
Hi guys and gals, I'm writing a file parser, which reads "source code -ish" text from files. The text is usually in this kind of format: Module: { Submodule: { Property: Value ... } Submodule: { } } Module: { Property: Value } I've written a simple but hazardous reader … |
|
I'm trying to parse an XML file in Java using the XOM library. Where i'm running into an issue is when i hit nested elements. So in XOM you start with a root node, and i am able to parse the attributes out of that root node, and the three … |
|
Hey all, I need to get a design going to parse some XML files, in the past i have used XStream to parse files, however it doesn't appear to be working in this case. Here is a sample of the generated XML i'm trying to parse: <debugging level="0" /> XStream … |
|
Hey all, I need to get a design going to parse some XML files, in the past i have used XStream to parse files, however it doesn't appear to be working in this case. Here is a sample of the generated XML i'm trying to parse: <debugging level="0" /> When … |
|
Getting the following error while running the website script Parse error: parse error, expecting `';'' in F:\xampp 1.7.1\xampp\htdocs\engine\includes\functions.php on line 23 Please help to solve this. Here is the coding of functions.php from line 1 till end function paging( $frontUrl, $backUrl, $currentPage, $rowsPerPage, $allRows ) { global $langArray; if ( … |
|
Hey everyone. I was learning how to make a simple content system for my website today and I was following along the code at [css-tricks.com](http://css-tricks.com/php-for-beginners-building-your-first-simple-cms/) and when I was all finished, I got this error saying: `Parse error: syntax error, unexpected $end in /home/gosports/public_html/gsbadmin/_class/simpleCMS.php on line 107` I read up … |
|
Hi. I have been working on a project that displays data in an XML file. (It's kind of like an API). I know how to parse XML with PHP, and how to make an XML file in PHP, but they don't work together. :) Basically, I have two files: `parse.php` … |
|
I am developing a program that gets the html source code of a certain webpages in a website. I already developed one program that does so, here's the sample code Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create(TextBox2.Text) Dim response As System.Net.HttpWebResponse = request.GetResponse() Dim sr As System.IO.StreamReader = New System.IO.StreamReader(response.GetResponseStream()) Dim … |
|
Hi all, After spending 2 days going through this code, going through search engines and endless forums trying to find a solution, i find myself still on Square 1. Therefore just before I begin hitting my head against the wall (have pity on the poor wall) I thought I'd give … |
|
Array ( [TIMESTAMP] => 2012%2d05%2d01T17%3a19%3a07Z [CORRELATIONID] => 3aeb192ad6388 [ACK] => Failure [VERSION] => 51%2e0 [BUILD] => 2764190 [L_ERRORCODE0] => 10527 [L_SHORTMESSAGE0] => Invalid%20Data [L_LONGMESSAGE0] => This%20transaction%20cannot%20be%20processed%2e%20Please%20enter%20a%20valid%20credit%20card%20number%20and%20type%2e [L_SEVERITYCODE0] => Error [AMT] => 10%2e00 [CURRENCYCODE] => GBP ) Hello everyone, Can you please suggest on how to parse responses? It is the … |
|
/*This code counts the vowels in strings? It has to use user defined methods: */ import java.lang.String; import java.io.*; import java.util.*; public class vowelConsonant2 { static Scanner scan = new Scanner(System.in); public static void main(String args[]) { String text; int actualI, actualC; System.out.println("Enter the String:"); text = scan.nextLine(); System.out.println("There are … |
|
i'm making this function that replaces single slashes in a path with doubles slashes. It works for everything but slashes because I gotta use doubleslashes to specify a single slash so how do I refer to double slashes. QString AddDoubleSlashtoPath(QString Path){ QStringList splitup=Path.split("//") ;/*supposed to be a single slash*/ QString … |
|
Here is an amazing article. Peter Norvig does not let small detail, that the language was never implemented in it's time, disturb his debugging the code written without implementation, but single handedly implements it with Python parser. Frustration warning, this is frustratingly amazing stuff: [Prescient but Not Perfect: A Look … |
|
Hi I'm new to python and this forum and I am trying to work on a program that splits the html text file into its components: The HTML file looks something like this: " Hello World #title Today is a Friday. The weekend is coming. Lets have fun. #summary 1923 … |
|
I wrote an XML parser that works great to fit my needs, but I can't retrieve the root attribute nodes no matter what I try! So far I have the following code that works great to retrieve the child tag values: import xml.dom.minidom def parse(filename): xmlDoc = xml.dom.minidom.parse(filename) tag = … |
|
I want to load a 3D model into an opengl scene. For this I've read about the .obj format and how the vertex cord's and etc are stored. I want to parse this file, but have completely no idea what soever how to begin with. After going through couple of … |
|
Hi, I am in need of parsing some html code. Here is an example of what I am trying to do, but not quite sure how to do it. [CODE] <tbody><tr> <td>1.</td> <td><a href="something.php?y=US&id=197003">Some Name Here</a></td> <td>City, STATE</td> <td class="noWrap"></td> <td class="noWrap">123-456-7890</td></tr><tr class="altRow"> <td>2.</td> <td><a href="something.php?y=US&id=113762">Another Name</a></td> <td>City, STATE</td> <td … |
|
I am trying to parse main(argc, argv[]); and i need to look at individual characters with in the strings pointed to by *argv[]. I though of a string as an array of chars. This builds fine but causes an error in execution. So what is a simple and straight forward … |
|
Hi, I want to process a text file. Here are the contents of the text file labels 1 -1 -1 0.2988 0.7012 -1 0.188161 0.811839 -1 0.0824541 0.917546 1 0.579515 0.420485 -1 0.0965063 0.903494 -1 0.174624 0.825376 -1 0.0404312 0.959569 -1 0.0770909 0.922909 -1 0.12001 0.87999 1 0.778388 0.221612 In … |
|
|
If new DW is being rolled out shortly, perhaps I'm too late. I've found the auto parse urls to be a massive pain. The editor can either be basic or standard (can it be set to Advanced Editor??), meaning that if I want to display a url as text I … |
This is the beginnings of a login script that I've been working on, and I can't seem to figure out why I have this error. The error is said to be on line 10. Any help would be appreciated. I've changed the info in the variables used for connection just … |
|
Hello, I am currently helping my BI team convert a Cognos Tree Object into a Javascript tree object. The part where I am stuck is using javascript to parse the XML data file that would normally fill up the Cognos tree. Here is an example of the XML data file... … |
|
i am doing connectivity of one form of my project website. and i am facing following kind of error. please can you help me. i have tried to solve. but not getting idea exactly. the error is Parse error: syntax error, unexpected ';' in C:\wamp\www\PROJECT\feed_data.php on line 15 <?PHP $con=mysql_connect("localhost","root",""); … |
|
|
My requirement is to parse through a HTML document ( which will be an article) and come up with a few keywords which describe what the document is about. For example, if a professor writes an essay about say, information security; i want to parse this HTML document and come … |
I have written this short code [CODE] import os import os.path import string import shutil import difflib Path = 'C:/RESULT/BATCH/SimpleInputParser/' SecPoint = [] FullList = [] newFile = [] for fileName in os.listdir(Path): if fileName.endswith(".inp"): f=open(Path + fileName, 'r') files = f.readlines() f.close() fp_clean = open(Path + "tempClean.inp", "w") fp_newFile … |
|
<html> <head> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="Raphael.js"></script> <script type="text/javascript"> <?php include("class.logger.php"); //path to class.logger.php file $log = new logger(); //Instentiate the class $log->dbconnect(); //connect to database //pass the name of the table as the parameter. I.e. 'logger" $log->createtable('logger'); //set date and year text for the info bubble that appears … |
|
Hi guys, I have a project that reads a json data and parse it. The program is working properly except that I cannot get its individual rows and view it in separate panels. Here is my code: [CODE] Imports System.Net.Json Public Class Form2 Private Sub Button1_Click(ByVal sender As System.Object, ByVal … |
|
I'm trying to write a blog and this comes up : Parse error: syntax error, unexpected '<' in C:\wamp\www\Blog\index.php on line 65 the code: [CODE] $query = "SELECT id, header, body, views FROM information"; $result = mysql_query($query); while($row = mysql_fetch_row($result)) { print "<div class=section odd>"; print "<a href=images/riverside.jpg><img src=images/riverside.jpg /></a>"; … |
|
hi, i would like to parse an input file (input.txt) into output file (output.txt) which i'll into excel. appreciate any advice on how to parse the input.txt into output.txt. thanks johnny |
The End.