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

  • Home
  • SEARCH
  • 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 622371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:58:39+00:00 2026-05-13T18:58:39+00:00

i am trying to genarate XML from xsd using perl can anyone guide me

  • 0

i am trying to genarate XML from xsd using perl
can anyone guide me in right direction
thank you

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        targetNamespace="urn:books"
        xmlns:bks="urn:books">
 <xsd:element name="books" type="bks:BooksForm"/>
<xsd:complexType name="BooksForm">
<xsd:sequence>
  <xsd:element name="book" 
              type="bks:BookForm" 
              minOccurs="0" 
              maxOccurs="unbounded"/>
</xsd:sequence>
 </xsd:complexType>
 <xsd:complexType name="BookForm">
<xsd:sequence>
  <xsd:element name="author"   type="xsd:string"/>
  <xsd:element name="title"    type="xsd:string"/>
  <xsd:element name="genre"    type="xsd:string"/>
  <xsd:element name="price"    type="xsd:float" />
  <xsd:element name="pub_date" type="xsd:date" />
  <xsd:element name="review"   type="xsd:string"/>
</xsd:sequence>
<xsd:attribute name="id"   type="xsd:string"/>
  </xsd:complexType>
</xsd:schema>
  • 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-13T18:58:39+00:00Added an answer on May 13, 2026 at 6:58 pm

    I can’t think of anything that specifically generates example XML from and XSD file in Perl. However if I were approaching the task I would start by looking at XML::Compile and XML::Pastor which both support some form of XSD -> Perl marshaling. There may be some way to boostrap their XSD parsing and build a random document generator from that.

    Another, much less favorable, option is to use my own XML::Toolkit to generate objects from the XSD file and use those to build a generator for your document. This wouldn’t be trivial or even necessarily “sane”, but I think it should be possible.

    There simply aren’t many tools for XSD in Perl at the moment.

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

Sidebar

Related Questions

I'm trying to generate beans from an xsd by using the jaxb2-maven-plugin maven plugin,
I am trying to generate a schema from this xml file: http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?rettype=xml&retmode=xml&db=nucleotide&id=AB573763 I store
Iam trying to generate the menu and For that iam using navigation.xml (Zend Framework)
I am trying to generate XAML from XElements. <Style xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation> <Style.BasedOn> <StaticResource> <StaticResource.ResourceKey> <Type
I am trying to figure out the best way to generate an XML sitemap
I'm trying to use the 'For Xml Path' T-SQL to generate a comma separated
I'm trying to upload Excel (2003) file into Sql server 2005. At present we
Is there an equivalent library for JAXB in .NET? I am trying to convert
IOException Error in getContentFromUrl method: java.io.FileNotFoundEx We are trying to hit a URL: http://somewebsite.com/somefolder/dosomething?zip=75070&servCat=1
I'm trying to speed up my builds some and was looking for some thoughts

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.