#XML-formatted
HDZ and DP (the leading right and far right parties) fucked up shit for us "little people" extremely. I have to sign a monthly XML formatted price list, even if it says: I have no products; and send it to the TAX office.
November 24, 2026 at 10:28 AM
Use Friendly Feed for @astro.build to turn your blog's RSS Feed into a well-formatted preview page, rather than just a wall of ugly XML. The Astro integration arrives just in time for Google's removal of XSLT in Chrome on the 17th of November.
Clicking an RSS link shouldn't show a wall of code. Friendly Feed for Astro shows people a page explaining feeds, at the same address, while feed readers still get the feed. No XSLT, which Chrome drops on 17 November. Free and open source.
Friendly Feed for Astro: a feed page people can actually read
Friendly Feed for Astro is a free integration that shows people who open your RSS feed in a browser a friendly page explaining feeds, while feed readers still get the feed, with no XSLT, which Chrome removes on 17 November 2026.
saltedlolly.com
November 10, 2026 at 4:45 AM
The Death of the Prompt: Why Autonomous Agents Are the Real Paradigm Shift in Python Development
We’ve all been there. You spend hours meticulously engineering a prompt. You add a few "few-shot" examples, inject some XML tags to keep the output formatted, and wrap it in a clean Python script using the OpenAI SDK. It works brilliantly for the exact test case you wrote. Then, you hand it to a user, they type something slightly unexpected, the model hallucinates, your regex parser crashes on unescaped JSON, and your morning is ruined. Welcome to the ceiling of prompt engineering. For the past few years, the software engineering world has treated Large Language Models (LLMs) like high-tech oracles: you ask a question, and you hope you get a pristine answer. But as developers attempt to build complex, production-ready AI applications, a glaring limitation has become impossible to ignore. **Chains and static prompts are fundamentally reactive.** They follow a rigid, developer-defined path from A to B. If a step fails, if data is missing, or if the user injects a novel curveball, the chain snaps. The industry is undergoing a massive epistemic shift. We are moving away from reactive prompt processing and toward **proactive execution** via **Autonomous Agents**. In this deep dive, we are going to tear down the theoretical foundations of autonomous agents, contrast them with the sequential chains you might already be building, and write the Python code to build a self-correcting agentic loop from scratch. The concepts and code demonstrated here are drawn directly from the comprehensive roadmap laid out in the ebook **AI Autonomous Agents with Python** , you can access the free github repo with all the code examples, exercises MIT Licensed and see the ebook details link. ## The Core Problem: The Fragility of the Chain To understand why autonomous agents are taking over software architecture, we have to look at what came before. In Book 7 of our architectural progression, we mastered **chains** —predefined sequences of steps, often involving multiple LLM calls, data transformations, and tool usages designed to solve bounded problems. When you build a sequential chain, you are acting as an absolute micro-manager. You write code that dictates: 1. First, take the user input and summarize it. 2. Second, take that summary and pass it to a translation API. 3. Third, save the translated output to a database. The flow is completely rigid. It is a traditional `if/else` control flow wrapped around a probabilistic reasoning engine. [User Input] ---> [Step 1: Summarize] ---> [Step 2: Translate] ---> [Step 3: Save] ---> [Output] What happens if Step 1 returns a poorly formatted summary because the input text was too chaotic? The chain breaks. What happens if Step 2 requires an unexpected intermediate step—like fetching external context from a vector database because the summary lacked domain specifics? The chain breaks. A chain lacks two things that define true software engineering resilience: **dynamic planning** and **self-correction**. ### The Self-Driving Analogy Think about traveling from Point A to Point B. * **A Simple Prompt Call** is like asking a static map application for directions. It gives you a single fixed route. If a road closes moments later, the map can't react. You (the human) have to manually intervene. * **A Sequential Chain** is like programming an old GPS device: _"Drive 10 miles on Highway 101. Then, turn right onto Elm Street."_ If there is a massive accident on 101, the GPS is completely helpless unless the developer hardcoded a rigid contingency for every square mile of asphalt. * **An Autonomous Agent** is the self-driving car. It is given a high-level goal: _"Get me to Point B safely."_ It calculates an initial route, constantly monitors external sensors (observes), recalculates when it hits traffic (orients and decides), and dynamically steers around obstacles without human intervention. An Agent, in the context of Python and LLMs, is a goal-oriented control system that uses an LLM as its **reasoning engine**. It navigates uncertainty, manages external state, and utilizes a diverse set of tools without requiring you to script every single micro-decision. ## Anatomy of Autonomy: The OODA Loop For an LLM to transcend its role as a static text-generator and become a true Agent, it must operate within a perpetual control structure. The industry standard model for this is derived from the **OODA Loop** (Observe, Orient, Decide, Act), originally developed by military strategist John Boyd. Let’s break down how these four phases map directly into a Python application architecture: ### 1. Observe (Input Gathering) The loop begins by gathering all relevant data points. This includes the initial high-level user goal, the raw results from the last executed tool, and any changes in the external environment. The Observation phase is purely about ingestion—receiving raw data from the outside world. ### 2. Orient (Contextualization and State Assessment) This is the most critical phase. The Agent does not simply look at raw data; it contextualizes it within its mission, its memory, and its current state. It compares the observation to the overall goal, queries its long-term memory for past experiences, and synthesizes a rich, contextualized prompt for the LLM. ### 3. Decide (Plan Generation and Tool Selection) Here, the LLM acts as the core strategist. Based on the synthesized context, the LLM generates an internal monologue (often via Chain-of-Thought prompting), selects a specific external tool, and formats the exact parameters required for that tool. ### 4. Act (Execution) The Action phase is where the Python environment takes over. The agent framework intercepts the structured instruction generated by the LLM, validates it, and executes the corresponding external Python function or API call. Once execution finishes, the results are fed right back into the **Observe** phase, restarting the loop. ## Building a Basic Agentic Loop in Python Let's move away from theory and write some code. Below is a foundational simulation of the OODA loop in Python using the OpenAI SDK. Instead of asking the LLM to write an answer in one massive, single-turn prompt, we are going to give it a multi-step research objective and force it to _iteratively_ determine if the goal is met. import os import time from openai import OpenAI from typing import List, Dict, Any # Initialize the OpenAI client try: client = OpenAI() except Exception as e: print(f"Error initializing OpenAI client: {e}") exit() # Define the primary goal for the agent PRIMARY_GOAL = ( "Research the capital city of Brazil and the year it was officially founded. " "Once both facts are confirmed, generate a single, concise summary sentence." ) # System prompt enforcing structured JSON output for state control SYSTEM_PROMPT = """ You are a highly focused, autonomous research agent. Your sole purpose is to fulfill the PRIMARY_GOAL. You operate in an iterative loop. Based on the current STATE and the ACTION_HISTORY, you must decide your next step. Your output must always be a JSON object with two keys: 1. "next_action": A string describing the precise next research step required to move closer to the goal. 2. "goal_achieved": A boolean (true or false). Set to true ONLY when the PRIMARY_GOAL is fully satisfied and the final synthesis is complete. If "goal_achieved" is true, the "next_action" must contain the final summary sentence. """ ACTION_HISTORY: List[Dict[str, str]] = [] CURRENT_STATE = "Goal initialized. Starting research." def run_agentic_loop(goal: str, max_iterations: int = 5) -> str: global CURRENT_STATE global ACTION_HISTORY iteration = 0 goal_achieved = False print(f"--- AGENT INITIATED ---") print(f"GOAL: {goal}") print("-" * 30) while not goal_achieved and iteration < max_iterations: iteration += 1 print(f"\n[Iteration {iteration}/{max_iterations}]") # A. OBSERVE & ORIENT context_messages = [ {"role": "system", "content": SYSTEM_PROMPT}, {"role": "user", "content": f"PRIMARY_GOAL: {goal}"}, {"role": "user", "content": f"ACTION_HISTORY (Past Steps): {ACTION_HISTORY}"}, {"role": "user", "content": f"CURRENT_STATE: {CURRENT_STATE}"} ] # B. DECIDE try: response = client.chat.completions.create( model="gpt-3.5-turbo", messages=context_messages, response_format={"type": "json_object"} ) except Exception as e: return f"Error during decision phase: {e}" # C. PARSE DECISION try: decision_json = eval(response.choices[0].message.content) next_action = decision_json.get("next_action", "Error: No action defined.") goal_achieved = decision_json.get("goal_achieved", False) except (SyntaxError, TypeError) as e: print(f"Error parsing JSON output: {e}") break # D. ACT ACTION_HISTORY.append({ "iteration": str(iteration), "decision": next_action }) print(f"DECISION: {next_action}") if goal_achieved: CURRENT_STATE = f"Goal successfully completed. Final Answer: {next_action}" print(f"\n*** GOAL ACHIEVED ***") return next_action else: # Simulate execution of the action (Tool Call simulation) execution_prompt = f"Execute the following research task precisely: '{next_action}'. Provide the factual result only." execution_response = client.chat.completions.create( model="gpt-3.5-turbo", messages=[ {"role": "system", "content": "You are a factual execution engine. Respond only with the requested fact."}, {"role": "user", "content": execution_prompt} ] ) execution_result = execution_response.choices[0].message.content.strip() CURRENT_STATE = f"Previous Action Result: {execution_result}. Now evaluate the remaining steps needed for the goal." print(f"RESULT: {execution_result}") time.sleep(0.5) if not goal_achieved: return f"Agent failed to achieve goal within {max_iterations} iterations." # Execute the simulation final_summary = run_agentic_loop(PRIMARY_GOAL) print("\n" + "="*50) print(f"FINAL OUTPUT: {final_summary}") print("="*50) ### Why This Code Changes Everything Look closely at what is happening here. The LLM isn't spitting out a massive block of text in one go. Instead, it is generating **control signals**. 1. In Iteration 1, it decides to find the capital of Brazil. 2. The execution layer captures that result ("Brasília") and feeds it back into the `CURRENT_STATE`. 3. In Iteration 2, the LLM reads that state, realizes it has the capital but lacks the founding year, and updates its strategy to query the founding year. 4. Finally, it synthesizes the whole thing and flips `goal_achieved` to `true`. This is the foundational shift: **The LLM's output is no longer the final product; the LLM's output is the _next command_.** ## Advanced Architecture: The Self-Correcting Validation Agent In a real-world enterprise environment, agents need to interact with external tools and handle failure gracefully. What happens when a tool returns an error? A traditional chain throws a stack trace and dies. An autonomous agent observes the failure, diagnoses it, and calls a correction tool. Let’s implement a more advanced script using Pydantic and LangChain core tools to simulate a proposal validation agent that automatically fixes formatting errors. import time from typing import Dict, Any, List from pydantic import BaseModel, Field from langchain_core.tools import tool # 1. Pydantic Schemas for Structured Communication class ProjectProposal(BaseModel): title: str = Field(description="The concise and descriptive title of the project.") description: str = Field(description="The detailed description, adhering to length requirements.") class AgentDecision(BaseModel): action: str = Field(description="The next tool to use: 'validate' or 'correct'.") context: str = Field(description="Summary of the current state and why this action was chosen.") # 2. Tool Definitions @tool def validate_project_rules(proposal: ProjectProposal) -> Dict[str, Any]: """Checks if the proposal adheres to strict length rules.""" title_len = len(proposal.title) desc_len = len(proposal.description) MIN_TITLE, MAX_TITLE = 10, 50 MIN_DESC = 100 errors = [] if not (MIN_TITLE <= title_len <= MAX_TITLE): errors.append(f"Title length ({title_len}) must be between {MIN_TITLE}-{MAX_TITLE}.") if desc_len < MIN_DESC: errors.append(f"Description length ({desc_len}) is too short. Minimum is {MIN_DESC}.") if errors: return {"status": "FAILURE", "report": errors} else: return {"status": "SUCCESS", "report": "Proposal meets all criteria."} @tool def generate_correction_plan(current_proposal: Dict[str, str], error_report: List[str]) -> ProjectProposal: """Simulates an LLM generating a corrected proposal based on errors.""" print(f"\n[Tool: Planning Correction] Fixing input based on errors: {error_report}") time.sleep(0.3) original_title = current_proposal['title'] original_desc = current_proposal['description'] # Correction strategy new_title = original_title[:50] if len(original_title) > 50 else original_title + " (Revised)" new_desc = original_desc + " " + "This extra text ensures the description meets the minimum length requirement for project approval." return ProjectProposal(title=new_title, description=new_desc) # 3. Decision Maker Simulation def mock_llm_decision_maker(current_state: Dict[str, Any]) -> AgentDecision: if current_state['status'] == 'GOAL_MET': return AgentDecision(action='terminate', context="Goal reached.") if current_state['status'] in ['INITIAL', 'CORRECTED']: return AgentDecision(action='validate', context="Checking rules against current proposal.") if current_state['status'] == 'FAILED_VALIDATION': return AgentDecision(action='correct', context="Validation failed. Generating correction.") return AgentDecision(action='terminate', context="Unknown state.") # 4. The Agentic Loop def run_validation_agent(initial_proposal: Dict[str, str], max_iterations: int = 3) -> Dict[str, Any]: state = { "status": "INITIAL", "current_proposal": initial_proposal, "history": [], "iteration": 0 } print(f"--- Agent Initialized. Goal: Validate & Fix Proposal. ---") while state["iteration"] < max_iterations: state["iteration"] += 1 print(f"\n[Iteration {state['iteration']}] Status: {state['status']}") decision = mock_llm_decision_maker(state) print(f" -> Decision: {decision.action.upper()} | Context: {decision.context}") if decision.action == 'validate': try: proposal_obj = ProjectProposal(**state["current_proposal"]) except Exception as e: print(f"Parsing error: {e}") break validation_result = validate_project_rules(proposal_obj) if validation_result["status"] == "SUCCESS": state["status"] = "GOAL_MET" print(" -> Validation SUCCESS.") else: state["status"] = "FAILED_VALIDATION" state["last_errors"] = validation_result["report"] print(f" -> Validation FAILED: {validation_result['report']}") elif decision.action == 'correct': corrected = generate_correction_plan(state["current_proposal"], state.get("last_errors", [])) state["current_proposal"] = corrected.model_dump() state["status"] = "CORRECTED" print(f" -> Correction Applied.") elif decision.action == 'terminate': break return state # Execute with bad input initial_bad_proposal = { "title": "A Way Too Long Project Title That Completely Breaks The Maximum Character Limits Imposed By Corporate Governance", "description": "Too short." } final_state = run_validation_agent(initial_bad_proposal) if final_state['status'] == 'GOAL_MET': print("\n[Final Validated Output]") print(ProjectProposal(**final_state['current_proposal']).model_dump_json(indent=2)) ### The Magic of Self-Correction Notice what happened in the script above. The agent received a proposal that failed validation. Instead of crashing, the state machine captured the error report, pivoted to a correction tool, altered the data payload, and looped back to re-validate. This is the exact mechanism that separates a toy script from an enterprise-grade AI system. The agent uses its error log as short-term memory to alter its subsequent actions. ## Common Pitfall: The Context Window Trap Before you go off and build agents that run for 500 iterations, we need to address a silent killer in agent design: **Context Window Overload**. In our simple scripts, we passed the entire `ACTION_HISTORY` back to the LLM on every single loop. For a 3-step script, this is fine. But imagine an autonomous coding agent trying to debug a massive repository over 150 iterations. 1. **Cost Explosion:** Every single API call sends a massive, ballooning payload of past logs. Your token costs will scale quadratically. 2. **Latency Spikes:** Processing a 100k+ token context window on every turn slows your agent down to a crawl. 3. **Context Degradation:** As history gets too large, models suffer from "attention dilution." They start forgetting instructions given in the system prompt at the very beginning of the run. ### The Solution: RAG for Agent Memory Production-grade agents do not pass raw history. They treat their memory like a database: * **Long-Term Memory (LTM):** Raw action logs and past experiences are stored in a Vector Database or structured SQL store. * **Selective Retrieval:** During the Observation phase, the agent queries its own memory store using the current goal and state, pulling _only_ the relevant past insights into the active context window. By keeping the working memory lean, you ensure your agent can run indefinitely without degrading its reasoning capability. ## Conclusion: The Agentic Future The transition from prompt engineering to agent engineering represents a maturation of our industry. We are no longer just writing text transformations; we are building autonomous control systems. By wrapping LLMs in an OODA loop, equipping them with Pydantic-validated tools, and giving them the capacity for iterative self-correction, we unlock software that can reason through uncertainty, handle messy real-world data, and execute multi-step objectives without constant human babysitting. The prompt is dead. Long live the agent. ### Let's Discuss 1. **Where do you draw the line between deterministic code and agentic reasoning?** At what point does letting an LLM make autonomous decisions become a security or reliability risk in your architecture? 2. **Have you encountered context window degradation in your own LLM applications?** What memory management or state-compression patterns have you found most effective for long-running workflows?
dev.to
November 10, 2026 at 8:39 PM
Drop some Transformations:
October 5, 2026 at 8:02 AM
Last post for today – an update on the PM Transcripts section of the GLAM Workbench: https://updates.timsherratt.org/2026/09/15/pm-transcripts-in-the-glam.html
The Department of Prime Minister and Cabinet has compiled a large collection of speeches, interviews, press releases etc by Australian prime ministers and made them available through the PM Transcripts site. You can search through the transcripts, and download the underlying XML files using a simple API. Back in 2016 (and again in 2019), I downloaded all the XML-formatted transcript files and shared them through a GitHub repository to make it easier for researchers to use the collection as a whole. Many more transcripts have been added in the years since, so an update was long overdue! Last week I reharvested the complete collection, which now comprises 28,560 transcripts. The only change to the harvesting process was that the file that lists all of the transcript file names is now generated by a batch process and has to be downloaded manually. Once that was saved, I could just plug it in to the old code. As previously, I created a CSV index to the transcripts, and did a little analysis and visualisation. Here, for example, is the number of transcripts by year and prime minister – you can see a lot of Scomo and Albo has been added since my original harvest. I also aggregated the transcript files by prime minister – creating a single text file for each PM, as well as a zip file containing all the XML transcripts. That should make it easier to load up all the words of a particular PM for analysis. I completely overhauled the PM Transcripts section of the GLAM Workbench in the process, updating it to the latest format. There you’ll find all the notebooks I used to process the data, as well as details of the complete dataset. The transcripts are made available by the Commonwealth under a CC-BY licence.
updates.timsherratt.org
September 15, 2026 at 6:52 AM
I created a new Python package called `dmarc-report` and it's for us geeks who have set up DMARC reporting and want to have a quick look at the XML reports in your terminal.

Using uvx you can just use: `uvx dmarc-report long-dmarc-report-filename.xml` and it will print a nice report.
dmarc-report
Displays a nicely formatted report in your terminal from a DMARC XML report.
pypi.org
December 6, 2024 at 5:39 AM
This is a app to format XML files in VBA - using Chilkat anythingaccess.com/xml-files/
Viewing XML Files - Anything Access
I use Chilkat to make and read XML files. I like the way the program is structured. In this sample you can paste raw unformatted XML - Click XML Formatted
anythingaccess.com
January 17, 2025 at 10:07 AM
related, i had to type this shit up in notepad on my laptop while sitting on a bench during GDC then convert to a json because for some reason *a particular* console partner's publishing backend form repeatedly refused to accept an XML file that was properly formatted
March 18, 2026 at 11:39 PM
Regulations for all 50 states formatted in xml and current as of June 30, 2025 are available for download. archive.org/download/sta... This is our 21st quarterly release. ht @ejwalters.bsky.social @justia.bsky.social
state.regulations.bulk directory listing
archive.org
July 19, 2025 at 12:13 AM
All state and federal regulations current as of March 31, 2025, formatted in XML, are now available for download. archive.org/download/sta... We now have 5 years of quarterly releases online in case your LLM needs a snack. ht @ejwalters.bsky.social @justia.bsky.social
state.regulations.bulk directory listingHamburger iconInternet Archive logoWeb iconTexts iconVideo iconAudio iconSoftware iconImages iconDonate iconEllipses iconDonate iconUser iconUpload iconSearch i...
archive.org
April 30, 2025 at 4:26 PM
so are any musicbrainz API devs on here because your XML and JSON outputs are returning different things on ISRC queries

dunno where to go about this
February 16, 2024 at 3:28 AM
and backup copies of the Federal Reserve official XML, JSON, and PDF of all the POTUS docs are now in the 47 Watch Codeberg repo, along with some Deno code to convert the XML to markdown (will be swapping out current EO markdown for much nicer formatted ones, soon) […]
Original post on mastodon.social
mastodon.social
February 1, 2025 at 3:56 PM
Libervia CLI tip 6:

Most commands have an `-O, --output` option to format the output. By default, the output is pretty formatted for humans, but you can output in JSON, XML, or other formats.

With `template` output you can use Jinja templates, either built-in ones (the ones used in the web […]
Original post on mastodon.social
mastodon.social
September 8, 2025 at 6:29 AM
#PHP has a built-in ASCII tree renderer. In the SPL.

RecursiveTreeIterator takes any recursive structure (arrays, directories, XML...) and outputs a formatted indented tree.

`tree` command behavior. In PHP. Since 5.3.

Pretty sure I would have use it a few times if I knew it existed 😅
March 15, 2026 at 6:09 PM
Yeah, we'll implement data exchange using SOAP formatted XML with UDP network calls. I hope our CGI gateway is up to snuff.
April 5, 2025 at 4:24 PM
Version 4.6 of syslog-ng introduced windows-eventlog-xml-parser(), a dedicated parser for #XML-formatted event logs from #Windows. It makes the EventData portion of log messages more useful, as it combines two arrays into a list of name-value pairs.

www.syslog-ng.com/community/b/...
#syslog_ng
Dedicated Windows XML eventlog parser in syslog-ng
Version 4.6 of syslog-ng introduced windows-eventlog-xml-parser(), a dedicated parser for XML-formatted event logs from Windows. It makes the EventData portion of log messages more useful, as it combi...
www.syslog-ng.com
April 8, 2024 at 8:15 AM
Version 4.6 of syslog-ng introduced windows-eventlog-xml-parser(), a dedicated parser for XML-formatted event logs from Windows. It makes the EventData portion of log messages more useful, as it combines two arrays into a list of name-value pairs.

www.syslog-ng.com/community/b/...
Dedicated Windows XML eventlog parser in syslog-ng
Version 4.6 of syslog-ng introduced windows-eventlog-xml-parser(), a dedicated parser for XML-formatted event logs from Windows. It makes the EventData portion of log messages more useful, as it combi...
www.syslog-ng.com
February 21, 2024 at 2:43 PM
Asked the AI at work to format some XML for me and, after its first answer basically saying “let me google that for you”, on the second try, it formatted *most* of the XML I sent it. Utter garbage.
June 4, 2025 at 3:38 AM