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 8724523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:50:59+00:00 2026-06-13T07:50:59+00:00

As part of a large project I am working on, I am constructing a

  • 0

As part of a large project I am working on, I am constructing a YAML file in memory, and then dumping it to a file, using SnakeYaml in this entire process. My YAML file is around 500 lines long and meant to be used by people who have no programming experience whatsoever, so comments on most nodes is a must. My past three hours have been spent staring at the SnakeYaml Documentation, as well as Googling a fair bit, but with no results. I can conclude one of three things:

  1. I may have missed it completely.
  2. Its not there (unlikely, if it does exists).
  3. Its not possible.

I’m leaning towards the third, but before I write my own YAML dumper, I wished to ask the StackOverflow community whether this is possible? So, is it? Something among the lines of yamlfile.setComment("a.random.node", "Its a random node!"); would be bliss, but it doesn’t matter to me if it isn’t anywhere close to as simple.

In the case that it is not, could someone give me some pointers as to what I should do to accomplish this?

  • 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-06-13T07:51:00+00:00Added an answer on June 13, 2026 at 7:51 am

    Since the comments are not part of the representation tree, they are ignored by SnakeYAML.
    Since a YAML document is nothing but a text document, any Template processor can be used.

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

Sidebar

Related Questions

A large part of a project I'm working on now deals with sending certain
I am working as a part of a large project. The company that I
I’m currently working on a reporting library as part of a large project. It
So I've been working on a rather large project and using PlasticSCM as by
When working on a large software project I often use fuzz-testing as part of
I'm working on a project of which a large part is server side software.
I am working on a large web application implemented in ASP.net. The main part
I'm currently working on a project where we have a large data warehouse which
I'm working on a project with a large existing codebase and I've been tasked
I am working on a project where I need to crunch large integers (like

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.