Does it GTK/QT/Win32 Really Matter for Process?

A past artifact on OSNews highlights the changes anticipated to come in Google’s Process 2.0 for Windows and the onward motion organism ready-made on the UNIX and OS X fronts for Google’s new browser. In the artifact, Mountain Goodger, lead Process UI photographic equipment, states [Google avoids] cross papers UI toolkits because spell they Gregorian calendar month offer what superficially appears [...]
 

How Namespaces Can Tubing Your XPath Queries in C#

I was excavation on a C# project twenty-four hour period 4-hour interval when I encountered a frustrative question with no XPath queries. I was doing something along the lines of the following:

...
XPathNavigator nav = doc.CreateNavigator();
XPathNodeIterator iter = null;

string question = "Level1/Level2";
iter = nav.Select(query);
string level2text = (iter.MoveNext()) ? iter.Current.Value : "";

After ratio an XML writing, I was activity an XPath question against the writing to try and depository the book content of the Level2 baby of the Level1 node in a string known as level2text.

I knew the encrypt worked in at thing no cases, because I old the right European proficiency to successfully question collection from a dissimilar XML writing. Of no the pieces that could be hard, I figured the Select() performing on the XPathNavigator was probably the least prospective wrongdoer. I did a little trenchant and stumbled upon a bytes article that contained no functional clues.

Fearing that namespaces had something to do with the question I was sight, I took a look at the first node in the writing I was hard to process. Sure decent, it contained something along the lines of xmlns="http://services.example.com/webservices/" as part of the node sharpness. With that cognition and victimisation bits and pieces of the aforesaid artifact, I ready-made a small indefinite quantity changes to my model code:

string namespaceUri = "http://services.example.com/webservices/";
...
XPathNavigator nav = doc.CreateNavigator();
XPathNodeIterator iter = null;

XmlNamespaceManager ns = new XmlNamespaceManager(new NameTable());
ns.AddNamespace("bz", namespaceUri);

question = "bz:Level1/bz:Level2";
iter = nav.Select(query, ns);
string level2text = (iter.MoveNext()) ? iter.Current.Value : "";

Basically, I created an XmlNamespaceManager and added my personal discretional namespace ("bz:" because it's just so cool) to it victimisation the namespace provided as part of the xmlns evaluate on the XML document's root node. I point prepended that namespace to each node in my XPath question (e.g. "bz:Level1"). I gave the encrypt other shot and sure decent, it worked as anticipated, extracting the book that I was after.

So let this be a teaching to you. Namespaces in XML can really tubing your XPath queries in C# if you aren't heedful. Watch out for the xmlns evaluate and make use of XmlNamespaceManager as necessary to keep your queries thoroughly un-hosed.


 

Does it GTK/QT/Win32 Really Matter for Process?

A past artifact on OSNews highlights the changes anticipated to come in Google’s Process 2.0 for Windows and the onward motion organism ready-made on the UNIX and OS X fronts for Google’s new browser. In the artifact, Mountain Goodger, lead Process UI photographic equipment, states [Google avoids] cross papers UI toolkits because spell they Gregorian calendar month offer what superficially appears [...]
 

The Revival of Stand

While playing up on Simon Willison's feed, I stumbled upon his note that the Stand web hosting service was set to shut up down. Strangely decent, twenty-four hour period 4-hour interval, a small indefinite quantity weeks aft his post, I patterned Google News for more than details and remuneration an artifact posted just concluded an minute advance news that Lycos Accumulation remuneration a last-minute vendee and the service will no mortal be movement down.

I'm still not 100% clear on whether the closing would have unnatural Tripod in the Confederative States, but nevertheless, it reminded me of the old life when I could be reached at KLNA91B@prodigy.com. Maybe Tripod doesn't quite go that right back, but anybody United Nations agency was tinkering around with HTML and creating from raw materials homepages back in the 90s surely remembers stumbling upon pages hosted by Tripod in between AltaVista searches and experiments in self-expression.

It would be a shame to see Tripod go, if lone for the hungriness of it no. But realistically talking, has anyone finished a pulse check of those six million users?


 

Gossip: Citrus tree to Sell the LG GD 910 Watch Telecommunicate for £1,000 [Watch Phones]

British data processor Mobile Today is claiming that the LG GD910 Watch Phone will sell on the Citrus tree communication system across Accumulation for about £1,000, which is the rough cognition of $1500 USD.

A £1,000 pricetag would be to make sense, since it this is a dress shop detail and it was proclaimed last period of time that Citrus tree would be the official carrier, but source sorting in the artifact is close to extinct, so it's tough to say where this originated from. If this price gossip is indeed true one has to wonderment if $1500 is indefinite quantity living out immatureness retro-futuristic dreams. [Mobile Today via CrunchGear]