TouchXML installation guide

TouchXML is a libxml API wrapper written in Objective-C and usually helps with all your project XML needs. While writing my post about parsing XML element attributes and putting up demo project I realized that I tend to forget how to add TouchXML to new project, so here goes step-by-step of that procedure:

1. Get TouchXML

You can find archives to download in touchcode project downloads . Go to TouchCode github page and download TouchXML archive and extract it anywhere you like. It’s common practice to keep such libraries and classes in Developer/ExtraLibs directory.

2. Enable libxml2 library

First things first, before we actually add TouchXML files, we need to do some project configuration changes, so our project could use libxml library.

1. Go to “Project -> Edit project settings”

2. Activate “Build” tab

3. Search for “Header search paths” setting and add /usr/include/libxml2 value to it

libxml header search paths

4. Search for “Other linker flags” setting and add -lxml2 value

touchxml other linker flags

P.s. notice that search function is really useful for finding settings you need faster.

3. Add TouchXML classes

1. Right click (option click) on your projects “Classes” folder and go to “Add -> Existing files…”

2. Navigate to the directory where extracted TouchXML is kept and browse  deeper to “Common -> Source”. Select everything! And click “Add” obviously.

touchxml classes

3. Confirm.

Now you should see a bunch of new files in your project. I usually group them by selecting files I wish to group and then selecting “Group” in context (right click/option click) menu.

4. Import TouchXML to your project

#import "TouchXML.h"

That is all the “magic” and you’re good to go. Since, I am not going to write about actually using TouchXML, you can see a nice working example in my previous post.

5. Common errors

Error: libxml/tree.h: No such file or directory

… and hundreds of something missing errors. It means that something went wrong with “Header search paths”. Maybe you didn’t added /usr/include/libxml2
or added incorrectly? Check it.

Error: “_xmlDocDumpFormatMemory”, referenced from:- [CXMLDocument description] in CXMLDocument.o

… and tens of errors like this. While errors by them selfs aren’t very expressive, they wish to inform you, that you did not added -lxml2 flag to “Other linker flags”

And that is all for now!

Tags: , ,

94 responses

  1. Posted August 21, 2014 at 20:23 | Permalink

    Wonderful, what a web site it is! This web site provides valuable
    facts to us, keep it up.

    • Posted May 14, 2016 at 06:09 | Permalink

      Os cães ladram e a caravana passa. Gostava de perceber o que faz o diretor de councimação do Sporting. Como é que sai tanta noticia sobre eventuais intereces em jogadores do Sporting. Alguma coisa não bate certo!!!!!

    • Posted June 5, 2016 at 04:55 | Permalink

      comentou em 18 de agosto de 2011 às 00:12. Juuu querida, esse lápis de boca que deu as dicas para meninas de lábios finos, vc nos recomenda outras marcas que já usou?? E escolhe uma cor que mais parece com o seu lábio, certo?? Esse truque p aumentar lábios serve só para batons nudes ou serve p qualquer batom??Outra dúvida minha… Dá p comprar pinceis da Coastal Scents.em lojas no exterior ou só pelo site mesmo??Obrigada de novo!!! Sempre arrasando nos makes!!!! Não perco um tuto!!! Beijos

  2. Posted September 13, 2014 at 02:35 | Permalink

    To get relevant horsebox insurance equity release information, however, in not having to resort to
    crime? However, it is very important for everyone because if you wait for a benefit trigger to occur
    15 years from now and fully retired in six to seven.

  3. Posted September 16, 2014 at 03:21 | Permalink

    A motivating discussion is definitely worth comment. I do think that you should publish more about
    this topic, it may not be a taboo subject but typically folks
    don’t speak about thyese issues. To the next! All the best!!

  4. Posted September 21, 2014 at 14:48 | Permalink

    La base n’est pas seulement de nature défensive et servira de bouée de sauvetage pour les structures de l’armée et des soldats
    qui est nécessaire pour attaquer des clans ennemis et
    aussi pour les éliminer.

  5. Posted September 23, 2014 at 00:46 | Permalink

    I was recommended this web site by my cousin. I’m not sure whether
    this poswt is written by him as no one else know such detailed
    about my difficulty. You are incredible! Thanks!

  6. Posted September 25, 2014 at 12:48 | Permalink

    I am regular visitor, how are you everybody? This article posted
    at this web page is genuinely good.

  7. Posted October 2, 2014 at 08:47 | Permalink

    Hi there are using WordPress for your sitre platform? I’m new to
    the blog world but I’m trying to get started and set up my own. Do you need any html coding knowledge to make your oown blog?
    Any help would be greatly appreciated!

    my blog post renting [Gale]

  8. steven
    Posted March 5, 2015 at 17:09 | Permalink

    Hi !
    I used TouchXML in my project and I have problem when my app have to support 64 bit by Apple’s rules. These are errors when I built:

    1/Undefined symbols for architecture i386:
    “_OBJC_CLASS_$_CXMLUnsupportedNode”, referenced from:
    objc-class-ref in CXMLNode_PrivateExtensions.o
    ld: symbol(s) not found for architecture i386
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    2/Undefined symbols for architecture x86_64:
    “_OBJC_CLASS_$_CXMLUnsupportedNode”, referenced from:
    objc-class-ref in CXMLNode_PrivateExtensions.o
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    Can you help me ? Thank you for your help

  9. Posted August 12, 2015 at 15:00 | Permalink

    If you too are interested in trying this
    product, it can be had online form the Nidora website by placing an online order.
    Anna, 20, is now pregnant with her second
    child with husband Michael Cardwell. Research published by the British
    Journal of Nutrition suggests that those who eat breakfast every day stay more satisfied throughout
    the rest of the day than those that do not.

  10. Posted August 15, 2015 at 08:22 | Permalink

    Tank you for some other fantastic post. The place else could anybody get that type
    of info in such a perfect way of writing? I’ve a presentation subsequent week, and I
    am on the look for such info.

  11. Posted August 18, 2015 at 19:54 | Permalink

    With 12MP Burst photos at a blistering 30 frames per second, HERO4 Black helps you seize the moments you don’t need to miss.

  12. Posted August 22, 2015 at 09:54 | Permalink

    It is really a great and helpful piece of information. I am glad that
    you shared this helpful info with us. Please stay us up to date like this.
    Thank you for sharing.

  13. Posted August 29, 2015 at 18:03 | Permalink

    Hello, the whole thing is going well here and ofcourse every one is sharing facts,
    that’s in fact fine, keep up writing.

  14. Posted August 30, 2015 at 19:19 | Permalink

    You’re so cool! I don’t suppose I’ve truly read through a single thing like that before.

    So good to find someone with some unique thoughts on this subject matter.
    Seriously.. thanks for starting this up. This web site is one
    thing that is needed on the web, someone with a bit of

  15. Posted August 31, 2015 at 02:45 | Permalink

    After looking over a handful of the blog posts on your blog, I honestly like your technique of writing a blog.
    I saved as a favorite it to my bookmark webpage list and will
    be checking back soon. Take a look at my web site too and tell me what you think.

  16. Posted October 8, 2015 at 21:21 | Permalink

    I think what you wrote was verry logical. However, think about this,
    what if you added a ittle information? I ain’t saing you
    information isn’t solid., however what if youu added
    a headline that makes people deside more?
    I mean TouchXML installation guide | is a litfle vanilla.
    Youu could glance at Yahoo’s home page andd note how they create
    article titles to get people to click. You might addd a related video or a related pic or two
    to get people interested about what you’ve written. Just my opinion, it would bring your website a little bit more interesting.

  17. Posted November 10, 2015 at 17:45 | Permalink

    Hi there everybody, here every person is sharing these knowledge,
    therefore it’s nice to read this website, and I used to visit this
    weblog everyday.

  18. Posted December 13, 2015 at 15:53 | Permalink

    To save you time and money, I’ll let you know of something I learnt some time back.

    Would you trust a ‘girl’ wearing that ‘shirt’ to solve your
    critical problems. Also, you might not impress them as much when compared
    to the blur of actors they.

  19. Posted December 30, 2015 at 03:04 | Permalink

    Your story-telling style is witty, keep up the good work!
    auto parts

  20. Posted January 25, 2016 at 12:58 | Permalink

    We suggest you try the overall game list with no filter applied, to look
    for all available.

  21. Posted September 29, 2016 at 11:36 | Permalink

    Respect to author, some wonderful information.

    Also visit my web blog; музыка и без регистрации реп русский 2014 группы 25-17

Leave a Reply