Which HttpClient class should I use for Universal apps?

Hi,
I am developing a Windows Universal app for Windows phone and WinRT in C# and I would like to know which HttpClient class should i use? Should I use the System.Net.HttpClient or Windows.Web.HttpClient?

Because the System.Net.Http and System.Net.Http.Headers namespaces might not be available in future versions of Windows for use by Windows Store apps. It is stated in the official documentation on MSDN here:
https://msdn.microsoft.com/en-us/library/windows/apps/xaml/dn469431.aspx
"Starting with Windows 8.1 and Windows Server 2012 R2, use Windows.Web.Http.HttpClient in the Windows.Web.Http namespace and the related Windows.Web.Http.Headers and Windows.Web.Http.Filters namespaces instead for Windows Store apps."
And the Windows.Web.Http.HttpClient class is supported from Windows Phone 8.1, Windows 8.1 and Windows Server 2012 R2:
https://msdn.microsoft.com/en-us/library/windows/apps/xaml/windows.web.http.httpclient.aspx
Hope that helps.
Please remember to close your threads by marking all helpful posts as answer and then start a new thread if you have a new question.

Similar Messages

  • Which jdbc driver should be used for sqlserver 2000 and where to put it.

    hi all,
    My odi is 11g. I met the error infor "Could not load JDBC driver class [com.microsoft.sqlserver.jdbc.SQLServerDriver]" when i tried to connect to a sqlserver2000 database.
    The questions are:
    1. which jdbc driver should be used for sqlserver 2000?
    2. which folder to put it in?
    3. how to set the physical topological "Microsoft Sql Server" to use this jdbc driver?
    failed tries:
    i downloaded the driver "SQL Server 2000 Driver for JDBC Service Pack 2" and put it in the following folders:
    1. .../oracledi/drivers, and set this path to CLASSPATH.
    2. .../oracledi/userlib didn't exist, i created it and put the driver in.
    3. .../oracledi/agent/dirvers, in which a readme file exists and told me to put drivers in this folder.
    All these works were not useful. when I start odi.sh and try to connect to sqlserver2000 database, the same error infor came up.
    my environment is:
    os: Linux 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
    java: Java(TM) SE Runtime Environment (build 1.6.0_13-b03) Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02, mixed mode)
    ODI: 11g, installed in /users/oracle/odi/
    please help me,thanks a lot.
    jun
    帖子经 Jun编辑过

    Hi,
    You should check which JVM version is required by that version of the driver, I think the 2.x versions require a 1.6 JVM
    What error are you getting? If it is the "com.sunopsis.sql.c: No suitable driver", it indicates it can't find the jar file (sqljdbc.jar) for the driver you specify.
    Drivers folder in ODI 11g is under
    C:\oracle\product\11.1.1\Oracle_ODI_1\oracledi\agent\drivers.
    if you are using the standolone version
    On windwos :
    C:\Documents and Settings\<userName>\Application Data\odi\oracledi\userlib
    on linux
    $HOME/.odi/oracledi/userlib
    Have a read of :- http://download.oracle.com/docs/cd/E14571_01/core.1111/e16453/install.htm#CHDBIFAJ
    Thanks,
    Sutirtha

  • HT4839 Which apn setting should I use for my iphone 4 on net10

    Which apn setting should I use for iphone 4 on net10

    APN Settings for Net 10
    Cellular Data
    APN: att.mvno
    Username: (Blank)
    Password:(Blank)
    MMS (Blank)
    APN: att.mvno
    Username: (Blank)
    Password: (Blank)
    MMSC: http://mmsc.cingular.com
    MMS Proxy: 66.209.11.33
    MMS Max Size: 1048576
    MMS UA Prof URL: www.apple.com/mms/uaprof.rdf
    Type exactly whats on here on your settings.
    Procedure:
    1- Turn on your phone
    2- Get paperclip take out tray and put your non working sim card in- T-moble and simple mobile sim cards work great for me on this venture.
    3. Goto Settings>General>Cellular>Cellular Network
    At this point its very critical that you do this fast, Once you change the sim card to your net 10 the option Cellular Network will only stay on for a few seconds while it's searching for service. You will need to click on cellular once the Net10 sim card is in and click on Cellular network again.
    4. Get your paperclip take out the tray put in the Net 10 sim card
    5. Goto Cellular>Cellular Network while it's searching for service
    6. Type in your settings that I list above
    7. Scroll back to your main setting (Do not press your Home Button)
    8. Once you see your service up and running try out your web and send a picture message it should work.
    9. If it does'nt work you mistype one of the settings, it has to be exact or it wont work.
    10. Do the process all over again
    Keep this information and the sim card away for a later date in case you lose your setting I have'nt turned off my phone or let my battery die to find out if I lose my settings. One thing for sure I lost it when I update to the IOS 6.0.1.

  • Which kernel module should I use for Marvell Yukon 88E8001?

    Which kernel module should I use for Marvell Yukon 88E8001?
    a. sky2
    b. skge
    c. sk98lin

    I found this in the kernel''s /driver/net/Kconfig:
    config SKGE
    tristate "New SysKonnect GigaEthernet support"
    depends on PCI
    select CRC32
    ---help---
    This driver support the Marvell Yukon or SysKonnect SK-98xx/SK-95xx
    and related Gigabit Ethernet adapters. It is a new smaller driver
    with better performance and more complete ethtool support.
    It does not support the link failover and network management
    features that "portable" vendor supplied sk98lin driver does.
    This driver supports adapters based on the original Yukon chipset:
    Marvell 88E8001, Belkin F5D5005, CNet GigaCard, DLink DGE-530T,
    Linksys EG1032/EG1064, 3Com 3C940/3C940B, SysKonnect SK-9871/9872.
    It does not support the newer Yukon2 chipset: a separate driver,
    sky2, is provided for Yukon2-based adapters.
    To compile this driver as a module, choose M here: the module
    will be called skge. This is recommended.
    Looks like your module is "skge"

  • Which version of JDeveloper should I use for Oracle Apps 11.5.10.2?

    I am developing a stand alone application using JDeveloper 10.1.3.3, because I don't want to use the OAF extension. Can I run this stand alone application using Oracle Applications server (Oracle Applications version 11.5.10.2)? If no, which JDeveloper version should I use? If yes, could you please provide some direction on the deployment of stand alone application? Thanks in advance.

    If you are using the application server that comes with Oracle Applications - you probably need to use the JDeveloper version that comes with that one too. (The OAF forum will have more info on this).
    If you are using JDeveloper 10.1.3 then you can use a stand alone OC4J 10.1.3 to deploy your applications - and save yourself the hassle of messing up with your apps server.

  • Which compressor preset should I use for dvdsp "2hour movie".

    Which compressor preset & settings should I use to fit a 2 hour QT movie from fcp onto 4.7gb single layer dvd in dvdsp.
    Thanks in advance,
    Zia

    The 120 Minute preset is for two hours, but you may want to bring the average down and the high rate also.
    Take a look here for some info (make use to use AC3 and not aif audio)
    http://dvdstepbystep.com/faqs_7.php
    http://dvdstepbystep.com/faqs_3.php
    http://dvdstepbystep.com/qc.php
    http://dvdstepbystep.com/fasttrackover.php

  • Which antivirus software should i use for my iMac

    Hello,
    Wondering which antivirus software is recommended by Apple for an iMac?
    Thanks,
    Lisa C.

    VIRUSES
    No viruses that can attack OS X have so far been detected 'in the wild', i.e. in anything other than laboratory conditions.
    It is possible, however, to pass on a Windows virus to another Windows user, for example through an email attachment. To prevent this all you need is the free anti-virus utility ClamXav, which you can download for Tiger from:
    http://www.clamxav.com/download.php#tiger
    and for Leopard, Snow Leopard and Lion from here:
    http://www.clamxav.com/
    Note: If you wish to uninstall ClamXav: keep a copy of the disk image from when you downloaded it, or download it again - the uninstaller is included with the application. To uninstall, quit ClamXav Sentry (if you use it) and make sure it's not set to launch at log in. The uninstaller will remove the engine and any schedules you've got set up, then just drag ClamXav.app to the trash.
    If you are already using ClamXav: please ensure that you have installed all recent  Apple Security Updates  and that your version of ClamXav is the latest available.
    Do not install Norton Anti-Virus on a Mac as it can seriously damage your operating system. Norton Anti-Virus is not compatible with Apple OS X.
    FAKE ANTI-VIRUS SOFTWARE and associated MALWARE
    Do not be tricked by 'scareware' that tempts computer users to download fake anti-virus software that may itself be malware.
    Fake anti-virus software that infect PCs with malicious code are a growing threat, according to a study by Google. Its analysis of 240m web pages over 13 months showed that fake anti-virus programs accounted for 15% of all malicious software.
    Scammers trick people into downloading programs by convincing them that their PC is infected with a virus.
    Once installed, the software may steal data or force people to make a payment to register the fake product.
    Beware of PDF files from unknown sources. A security firm announced that by its counting, malicious Reader documents made up 80% of all exploits at the end of 2009.:
    http://www.computerworld.com/s/article/9157438/in which Rogue_PDFs_account_for_80_of_all_exploits_says_researcher
    TROJANS and RE-DIRECTION TO FAKE WEBSITES
    The appearance of Trojans and other malware that can possibly infect a Mac seems to be growing, but is a completely different issue to viruses.
    If you allow a Trojan to be installed, the user's DNS records can be modified, redirecting incoming internet traffic through the attacker's servers, where it can be hijacked and injected with malicious websites and pornographic advertisements. The trojan also installs a watchdog process that ensures the victim's  (that's you!)  DNS records stay modified on a minute-by-minute basis.
    You can read more about how, for example, the OSX/DNSChanger Trojan works (by falsely suggesting extra codecs are required for Quicktime) here:
    http://www.f-secure.com/v-descs/trojan_osx_dnschanger.shtml
    SecureMac has introduced a free Trojan Detection Tool for Mac OS X.  It's available here:
    http://macscan.securemac.com/
    First update the MacScan malware definitions before scanning. You can also contact their support team for any additional support - [email protected]
    The DNSChanger Removal Tool detects and removes spyware targeting Mac OS X and allows users to check to see if the trojan has been installed on their computer; if it has, the software helps to identify and remove the offending file. After a system reboot, the users' DNS records will be repaired.
    (Note that a 30 day trial version of MacScan can be downloaded free of charge from:
    http://macscan.securemac.com/buy/
    and this can perform a complete scan of your entire hard disk. After 30 days free trial the cost is $29.99. The full version permits you to scan selected files and folders only, as well as the entire hard disk. It will detect (and delete if you ask it to) all 'tracker cookies' that switch you to web sites you did not want to go to.)
    A white paper was published on the subject of Trojans by SubRosaSoft, available here:
    http://www.macforensicslab.com/ProductsAndServices/index.php?main_page=document_ general_info&cPath=11&products_id=174
    Also, beware of MacSweeper and MacDefender (also goes under the name of MacProtector, MacGaurd, MacSecurity or MacShield) :
    These are malware that misleads users by exaggerating reports about spyware, adware or viruses on their computer in an attempt to obtain payment.
    Mackeeper is equally worthless and should also be avoided. Again, the developer seeks to obtain payment for an application that does nothing that free utilities do not also offer, and in many cases it will also mess up your system.
    You can keep up to date, particularly about malware present in some downloadable pirated software, at the Securemac site:
    http://www.securemac.com/
    HOW TO AVOID RE-DIRECTION
    Adding Open DNS codes to your Network Preferences, should give good results in terms of added security as well as speed-up:
    Open System Preferences/Network. Double click on your connection type, or select it in the drop-down menu, and in the box marked 'DNS Servers' add the following two numbers:
    208.67.222.222
    208.67.220.220
    (You can also enter them if you click on Advanced and then DNS)
    Sometimes reversing the order of the DNS numbers can be beneficial in cases where there is a long delay before web pages start to load, and then suddenly load at normal speed:
    http://support.apple.com/kb/TS2296
    There may be other ways of guarding against Trojans, viruses and general malware affecting the Mac, and alternatives will probably appear in the future. In the meantime the advice is: be careful where you go on the web and what you download!
    WHAT TO DO IF YOU THINK YOUR MAC HAS BECOME 'INFECTED'
    If you think you may have acquired a Trojan, and you know its name, you can also locate it via the Terminal:
    http://theappleblog.com/2009/04/24/mac-botnet-how-to-ensure-you-are-not-part-of- the-problem/
    Although any content that you download has the possibility of containing malicious software, practising a bit of care will generally keep you free from the consequences of anything like the DNSChanger trojan.
    1. Avoid going to suspect and untrusted Web sites, especially p'orn'ography sites.
    2. Check out what you are downloading. Mac OS X asks you for you administrator password to install applications for a reason! Only download media and applications from well-known and trusted Web sites. If you think you may have downloaded suspicious files, read the installer packages and make sure they are legit. If you cannot determine if the program you downloaded is infected, do a quick Internet search and see if any other users reported issues after installing a particular program.
    3. Use an antivirus program like ClamXav. If you are in the habit of downloading a lot of media and other files, it may be well worth your while to run those files through this AV application.
    4. Use Mac OS X's built-in Firewalls and other security features.
    5.  Peer-to-peer sharing applications and download torrents (such as the now defunct LimeWire) supplying pirated software, movies etc are hotbeds of potential software issues waiting to happen to your Mac. Everything from changing permissions to downloading trojans and other malicious software can be acquired from using these applications. Similar risks apply to using Facebook, Twitter, MySpace, YouTube and similar sites which are prone to malicious hacking:  http://news.bbc.co.uk/1/hi/technology/8420233.stm
    6. Resist the temptation to download pirated software. They can contain Botnet Trojans.  SecureMac offer a simple and free tool for the removal of the iBotNet Trojan available here:
    http://macscan.securemac.com/files/iServicesTrojanRemovalTool.dmg
    YOUR PRIVACY ON THE INTERNET and the latest risks to look out for:
    There is the potential for having your entire email contact list stolen for use for spamming:
    http://www.nytimes.com/2009/06/20/technology/internet/20shortcuts.html?_r=1
    And if you are using iPhone Apps you are also at risk of losing all privacy:
    http://www.engadget.com/2010/10/03/hacker-claims-third-party-iphone-apps-can-tra nsmit-udid-pose-se/
    The advent of HTML5  may also be a future threat to internet privacy:
    http://www.nytimes.com/2010/10/11/business/media/11privacy.html?_r=1&hp
    Security of OS X generally:
    http://www.apple.com/macosx/what-is/security.html
    http://www.nsa.gov/ia/_files/os/applemac/I731-007R-2007.pdf
    Security Configuration for Version 10.5 Leopard:
    http://manuals.info.apple.com/en_US/Leopard_Security_Config_2nd_Ed.pdf
    NOTE: Apple's Snow Leopard and Lion operating systems silently update the malware protection built into Mac OS X to protect against a backdoor Trojan horse that can allow hackers to gain remote control over your treasured iMac or MacBook: Macs running Snow Leopard or Lion now check for new malware definitions daily, allowing Apple to quickly deploy protection from threats before they have a chance to spread.
    Few malicious titles actually exist for Mac OS X, and those that do rely almost entirely upon duping users to install software that pretends to be legitimate.
    http://www.sophos.com/blogs/gc/g/2010/06/18/apple-secretly-updates
    However, if you are running Lion Server:
    Apple's new server operating system -- OS X Lion -- is so inherently insecure that Stamos recommends keeping it off the network altogether and using Macs only as standalone machines connected to IP or Windows networks, not those designed for Macs.
    The Mac Server's networking protocols -- especially DHX User Authentication -- are designed for ease of use, not security. It is trivial, Stamos said, for hackers to set up a Mac user to download a file that will overflow the buffer protecting the heap segment of the server's memory, allowing the file's malicious payload to run uncontrolled in the server's memory and give itself whatever access rights it wants.
    http://www.macworld.co.uk/mac/news/index.cfm?newsid=3301796&olo=email

  • Which add-on should I use for displaying Page Rank?

    Please tell me the add-ons that I can use for letting me know the Page Rank of a website.
    Google PR and Alexa PR is needed.
    Thank You

    Have you tried [https://addons.mozilla.org/bn-BD/firefox/addon/seo-status-pagerankalexa-toolb/ SEO Status PageRank/Alexa Toolbar] ? I don't know of Google PR...sorry!

  • Question About what Azure Services I should be using for mobile app with website.

    Hello,
    I am wondering what Azure service would be best for my new application. I need to have an SQL database that I can connect to and modify from both a website and a mobile app preferably WP8 and Android. I was not really understanding whether I would need a
    mobile service or normal SQL database. Which should I use or am I completely off track?
    Thanks,
    Matthias

    Mobile Services uses SQL Database, nothing special on that SQL Database, its just like any other  "normal" SQL Database.
    Mobile Services provides "back-end services" that simplifies accessing SQL Database, Notification services, authentication, etc...
    Let's assume you don't use Mobile Services, to use SQL Database, you would need your app (both mobile and web) to connect to the database. In practice, you will not want to expose your SQL database directly, so you'd end-up writing some kind of a "facade"
    that your app will access instead of directly connecting to the database.
    Instead of writing that "facade", Mobile services provides that for you (you still have to write code though, but less than what you need to write if you're rolling your own).
    Both your web app and mobile apps can share the same SQL database (pay attention to the mobile service schema).
    To help you decide, ask yourself what other features will your mobile app require? Authentication? Notification? etc... are you prepared to write those on your own or use various libraries instead of one?

  • Which programming language do we use for ios apps?

    Hello,
    I would like to know which programing language do professional ios app developers use for apps which work with an integrated database. I thought firstly about C# but recently Ruby has come into my attention as a good app development language.
    Thank you very much.

    Since you mentioned Ruby, there is the RubyMotion toolchain, which can be used to develop applications for iOS, OS X, and Android.  It isn't free, but then again you won't have to use Objective-C or Swift (or even Xcode for that matter).  You will still need to be able to at least read Objective-C/Swift/Java/whatever, since that is what the various API documentation is written for.

  • What classes should i use for graphics?

    I was wondering, what is the most effecient way of going about drawing 2d graphics for a game...
    use Java2D, swing, GBFrame, whatever else is out there, ect. ect.
    Your suggestions will be very much appreciated, thanks!

    Hi!
    Thank you very much for your help, I appreciate it a lot.
    While I test my server, I execute ping www.myclienthost.com -t (my client games are in other office, in the same building, but different ISP) and I don't see anything strange, so I guess network is working perfectly. However, if I use wireshark (sniffer) and I see that my system fails (server does not send acks so client disconnects) is because my acks messages are not sended for 6 o 7 seconds (it should send them every 2 or 3). It seems thread is blocked. and after 6 or 7 seconds one message with 2 or 3 acks together is sent. So, I see that the thread handler blocked for a few seconds and this is doing my server is failing. Why client handler thread on my server is blocked? One question: every 2 or 3 seconds I have a thread that uses sleep that iterates thru client handlers and takes OutputStream and send one ack message for every client handler. My question is, in client handler class I have a method called SendInfo(String whatever) which encrypts and sends through OutputStream, should I protectd this method from accesing from two threads??? as acks thread and client thread can access at the same time. Could this be the problem??
    EDIT: In my previous post I forgot to say what I found out with wireshark. Here I explain it. Sorry.
    By the way, how can I debug threads?? I would like to know if my client thread is blocked in that critical moment.
    Thanks a lot for your ideas and sorry for my English.
    Edited by: Ricardo_Ruiz_Lopez on Jan 22, 2009 7:38 AM

  • Which BUs Object should I use for archiving and linking to SalesDocuments

    Hi,
    I want to archive documents and link them to SalesDocuments, but I don't know which BUsiness Object I should use. Special Ones like BUS2030, BUS2031,... or the general Type VBAK. If I use VBAK I have the problem, that when I archive manually all with VBAK linked documenttypes are proposed, so that I can't control, which documents are allowed to be linked with for instance CustomerQuotation or SalesOrder.

    Hello Marc,
    For Sales Order user object type as BUS2032
    Customer Quotation- BUS2031
    Customer Inquiry - BUS2030
    BUS2033          Customer complaint order
    BUS2034          Customer Contract
    BUS2035          Customer scheduling agreement
    BUS2051          Customer outline agreement
    BUS2094          Credit memo request
    Hope this will answer your question.
    -Thanks,
    Ajay

  • Best practice - which server OS should I use for Exchange 2010 install

    We currently have 2 exchange 2007 boxes running Server 2003. the plan is to upgrade to exchange 2010 (I'd prefer 2013 but the powers that be want 2010), and I have been asked to follow Microsoft best practice. The problem is I can't find anything to point
    me in the direction of the recommended server OS, I can find ones it will work on but nothing to say Microsoft recommend this...
    We have licenses for Server 2008, 2008 R2 and 2012 available, which one should I advise is the Microsoft recommendation?

    Thanks Andy,
    So is there no actual best practice recommendation for a server OS to run Exchange 2010 on? I agree that 2012 would be the one to go for, but the people making the decision on how we do this want reasons, and as they don't really have a lot of technical
    understanding I need to be able to go to them with "Use Server 20xx because it's Microsoft best practice".
    If there isn't a best practice recommendation I will try the longer support life and more options for high availability with 2012.
    Well, you probably wont find a "best practice" as much as a "its supported" stance from Micorosoft.
    As in all these things, there may be other reasons a business chooses to use 2008 over 2012 etc...
    Twitter!: Please Note: My Posts are provided “AS IS” without warranty of any kind, either expressed or implied.

  • Which jar files should I use for XSLT?

    I'm trying to do one of the examples from the Java/XML tutorial on this site. I can't get it to work. I started with the JAXP jar file and couldn't compile because it couldn't find one of the classes it needed. I then added the XALAN jar file to my CLASSPATH and got a clean compile but it crashes when I try to create the tranformer from the factory. It gives an error that says something like the SAX parser doesn't support the namespace. I tried various iterations of this. Could someone please tell me which jar files to include and in what sequence?
    Thanx,
    Cliff

    I have the Xerces jar followed by the Xalan jar.
    I get the following error:
    C:\JBUILDER4\JDK1.3\bin\javaw -classic -classpath "C:\JBuilder4\projects\ProjectXML\classes;C:\Java\lib\xerces.jar;C:\Java\lib\xalan.jar;C:\JBUILDER4\JDK1.3\demo\jfc\Java2D\Java2Demo.jar;C:\JBUILDER4\JDK1.3\jre\lib\i18n.jar;C:\JBUILDER4\JDK1.3\jre\lib\jaws.jar;C:\JBUILDER4\JDK1.3\jre\lib\rt.jar;C:\JBUILDER4\JDK1.3\jre\lib\sunrsasign.jar;C:\JBUILDER4\JDK1.3\lib\dt.jar;C:\JBUILDER4\JDK1.3\lib\tools.jar"  -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_shmem,address=javadebug,suspend=y com.craig.xml.util.Stylizer C:\JBuilder4\projects\ProjectXML\DataAreaDescTemplate.xsl C:\JBuilder4\projects\ProjectXML\DataAreas.xml
    javax.xml.parsers.FactoryConfigurationError: java.lang.ClassNotFoundException: org.apache.crimson.jaxp.DocumentBuilderFactoryImpl
         at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:149)
         at com.craig.xml.util.Stylizer.main(Stylizer.java:47)
    Exception in thread "main"
    This is my code:
    package com.craig.xml.util;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.FactoryConfigurationError;
    import javax.xml.parsers.ParserConfigurationException;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    import org.w3c.dom.Document;
    import org.w3c.dom.DOMException;
    // For write operation
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerException;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.TransformerConfigurationException;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamSource;
    import javax.xml.transform.stream.StreamResult;
    import java.io.*;
    * Title:        ProjectXML
    * Description:  Test Project for XML work
    * Copyright:    Copyright (c) 2002
    * Company:
    * @author Clifton Craig
    * @version 1.0
    public class Stylizer {
      // Global value so it can be ref'd by the tree-adapter
      static Document document;
      public Stylizer()
      public static void main(String[] argv)
        if (argv.length != 2)
          System.err.println ("Usage: java Stylizer stylesheet xmlfile");
          System.exit (1);
              DocumentBuilderFactory factory =
              DocumentBuilderFactory.newInstance();
              //factory.setNamespaceAware(true);
              //factory.setValidating(true);
              try
                   File stylesheet = new File(argv[0]);
                   File datafile = new File(argv[1]);
                   DocumentBuilder builder = factory.newDocumentBuilder();
                   document = builder.parse(stylesheet);
                   // Use a Transformer for output
                   TransformerFactory tFactory =
                   TransformerFactory.newInstance();
    //               StreamSource stylesource = new StreamSource(stylesheet);
                   StreamSource documentsource = new StreamSource(datafile);
                   DOMSource styler = new DOMSource(document);
                   Transformer transformer = tFactory.newTransformer(styler);
                   StreamResult result = new StreamResult(System.out);
                   transformer.transform(documentsource, result);
              catch (TransformerConfigurationException tce)
                   // Error generated by the parser
                   System.out.println ("\n** Transformer Factory error");
                   System.out.println(" " + tce.getMessage() );
                   // Use the contained exception, if any
                   Throwable x = tce;
                   if (tce.getException() != null)
                      x = tce.getException();
                   x.printStackTrace();
              catch (TransformerException te)
                   // Error generated by the parser
                   System.out.println ("\n** Transformation error");
                   System.out.println(" " + te.getMessage() );
                   // Use the contained exception, if any
                   Throwable x = te;
                   if (te.getException() != null)
                   x = te.getException();
                   x.printStackTrace();
              catch (SAXException sxe)
                   // Error generated by this application
                   // (or a parser-initialization error)
                   Exception x = sxe;
                   if (sxe.getException() != null)
                   x = sxe.getException();
                   x.printStackTrace();
              catch (ParserConfigurationException pce)
                   // Parser with specified options can't be built
                   pce.printStackTrace();
              catch (IOException ioe)
                   // I/O error
                   ioe.printStackTrace();
      }//End Main
    }

  • Which Apple ID should I use for iCloud?

    I'm thinking of signing up for iCloud. I have 2 Apple IDs. I have an iTunes @Mac.com and Mobile me @me.com. If I use the @me.com will I still be able to synch my iTunes across all of my devices.
    I would appreciate some advice.

    It doesn't matter which ID you use, iCloud accounts and iTunes accounts are different things, so long as you continue to use the iTunes account and it's ID, you will still have access to all your tunes, books, apps etc etc.

Maybe you are looking for

  • Can't access iTunes from iCloud

    I uploaded my itunes library (from my PC) to icloud and now I can't find the library anywhere.

  • Error while posting billing doc.

    Dear Gurus, I am facing a problem during posting billing dic. Error: Incorrect doc.no.: 84000005. Select document number between 0090000000 and 0099999999 Message no. F5151 Diagnosis The document number you specified, "&v1", is not in the appropriate

  • How to connect garmin 500 to ipad air. poinrless for me to buy the ipad without that option.

    How do I connect a Garmin 500 to ipad air?

  • Inspection lot qty printout

    Dear all, I have a requirement of a tag printing in which inspection lot details are being printed. The Tag being printed every time of partial UD, here the problem in printing of the tag observed. The tag contains the inspection lot cleared qty, but

  • IWeb '08 and Yahoo Web Hosting

    Hi, 1. Does anyone use Yahoo Web Hosting for their website that they created through iWeb? If so, did you just create your site in iWeb and then convert to your Yahoo domain through FTP? Was it easy? 2. Do you have to have Mobile Me to create in iWeb