Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6052561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:56:31+00:00 2026-05-23T07:56:31+00:00

I am using GDataXML in my iOS application and want a simple way to

  • 0

I am using GDataXML in my iOS application and want a simple way to format and print an XML string – “pretty print”

Does anyone know of an algorithm in Objective C, or one that works in another language I can translate?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T07:56:32+00:00Added an answer on May 23, 2026 at 7:56 am

    I’ve used HTML Tidy (http://tidy.sourceforge.net/) for things like this. It’s a C library so can be linked in to and called from an Objective C runtime fairly easily as long as you’re comfortable with C. The C++ API is callable from Objective C++ so that might be easier to use if you’re comfortable with Objective C++.

    I’ve not used the C or C++ bindings; I did it via Ruby or Python but it’s all the same lib. It will read straight XML (as well as potentially dirty HTML) and it has both simple and pretty print options.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am making an iOS app where I'm using the GDataXML library for xml
I have a string that I have parsed from XML using Google's GDataXML parser,
When using GDataXML* to build an XML document, how do I set the doctype
I am trying to parse an xml using GdataXML I have a query which
Using online interfaces to a version control system is a nice way to have
Using C# and System.Data.SqlClient, is there a way to retrieve a list of parameters
I have an Objective C application that reads data from an RSS feed using
-<stat> <visitor>4</visitor> <uniqueVisitor>2</uniqueVisitor> <order>41</order> <revenue>20658</revenue> <conversionRate>48</conversionRate> <newProduct>25</newProduct> <outOfStockProduct>11</outOfStockProduct> </stat> From this xml i want
Using linq2sql I'm trying to take the string in txtOilChange and update the oilChange
Using WPF/PRISM I want to log my messages through ILoggerFacade to my GUI (A

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.