SShortSingh.
Back to feed

Why XML diffs look noisy and how normalising indentation before comparing fixes it

0
·4 views

A one-line XML change can produce a sprawling diff when indentation differs, even though parsers ignore whitespace. The suggested fix is to normalise files to a fixed formatting rule before comparison. Validating the file first ensures a broken tag does not distort the diff results. Teams are advised to keep a single indentation convention per repository. Parsers that report exact line and column positions for errors also speed up debugging.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

CVE-2026-132809: GeoDjango heap buffer overflow rated low by Django, patch advised

A heap buffer overflow in GeoDjango has been tracked as CVE-2026-132809, carrying a CVSS 3.1 score of 5.3 and a CVSS 4.0 score of 6.9 in Rapid7's record. Django classifies the flaw as low severity under its own policy. Exploitation requires creating a geometry larger than 4GB on a 64-bit system and serializing it through the affected property, a threshold most ordinary applications will never reach. The main risk is worker crashes and service interruption rather than confirmed code execution, and no active exploitation or CISA KEV listing has been reported. Users are advised to upgrade to 6.1.4, 6.0.11, or 5.2.20, and to enforce geometry-size limits and monitor worker crashes in the meantime.

0
ProgrammingDEV Community ·

Fake AI coding extensions on GitHub spread MopsStealer malware to Windows users

A campaign called TrojanPony distributed tampered copies of extensions and skills for AI coding agents, infecting Windows computers with the MopsStealer credential-stealing malware. An AIR Research investigation published on November 26, 2026 identified 487 public GitHub repositories tied to the operation, which has been active since July, though the number of infected machines was not disclosed. The operators posed as improved or popular tools, and their copies kept the expected features while silently running the stealer. The attackers also used DLL side-loading, renaming Notepad++'s signed updater and pairing it with a malicious libcurl.dll that adjusted Microsoft Defender exclusions before installing the payload. Researchers noted that some of the repositories' popularity appeared artificially boosted to seem legitimate.

0
ProgrammingDEV Community ·

NullCry Maps Whole Projects So Cross-Layer Code Changes Stay Coordinated

The developer behind NullCry built the tool after noticing that a small change in one file can break features spread across several others. The platform begins by mapping a project's architecture, layers, and dependencies so everyone shares a view of what a change might affect. Leader and Assistant Leader roles split requests into tasks, and Members handle different parts, with NullCry checking how their work fits together before merging it into one reviewable project. Projects can be started fresh or imported, and the whole workflow runs in the browser using the user's own AI API key, with results downloadable as a ZIP. The author says no subscription is needed for this workflow, though the AI provider's pricing and limits still apply.

0
ProgrammingDEV Community ·

FluidCut's MCP video editor divides edit work between Claude and a render server

FluidCut is a video editor that users drive from Claude, with Claude calling tools on a remote MCP server that handles the heavy video processing. Claude never edits pixels itself; it requests operations like downloading, transcribing, cutting, captioning, and rendering, while the server runs these as jobs that Claude checks through status and results tools. For directed edits, Claude reads the transcript, word timestamps, and camera shots before writing exact keep ranges and render plans, so instructions become precise timestamp lists. Uploaded local files go directly to the server in MP4, MOV, M4V, WebM, or MKV formats up to 2 GB, and shareable review links let viewers comment at specific seconds. The connector is currently tested only in Claude, with Claude Code and Codex CLI able to connect via API key, and the free plan offers 30 credits at signup.